AspBar Article Management System v1.0 Vulnerability

Source: Internet
Author: User
Tags servervariables

From Forum: http://bbs.2cto.com/read.php? Tid = 86782
Blog: http://hi.baidu.com/linkhack

But this day's stomach is desperate .. What is the article Management System of aspbar?

Several vulnerabilities were discovered .. Let's talk about the analysis process ..

This system, in general, is very good, basically cut off the injection (initially think there is a cookie injection)

/Admin/art_add.asp:


If Request ("action") = "add" Then

SortID = trim (Request. Form ("SortId "))
If SortID = "isnull" Then
Response. Write "<script> alert (" "select the information type! ""); Location. href = "" javascript: history. back () ""; </script>"
Response. end ()
End if
If SortID = "null" Then
Response. Write "<script> alert (" "You have selected a level-2 Category. Please select a level-2 category! ""); Location. href = "" javascript: history. back () ""; </script>"
Response. end ()
End if
If Request. form ("title") = "" Then
Response. Write "<script> alert (" "enter the information title! ""); Location. href = "" javascript: history. back () ""; </script>"
Response. end ()
End if
If Request. form ("Content") = "" Then
Response. Write "<script> alert (" "enter the information content! ""); Location. href = "" javascript: history. back () ""; </script>"
Response. end ()
End if
If Request. form ("Key") = "" Then
Response. Write "<script> alert (" "enter a keyword! ""); Location. href = "" javascript: history. back () ""; </script>"
Response. end ()
End if

Significant cross-site
700) this. width = 700; if (this. height> 700) this. height = 700; "border = 0>


Because this file is directly written to the database, it can also be compromised at the front-end.

Set rs = Server. CreateObject ("ADODB. Recordset ")
SQL = "select * from ku_art"
Rs. open SQL, conn, 1, 3
Rs. addnew


700) this. width = 700; if (this. height> 700) this. height = 700; "border = 0>

It is very harmful. If it is used, it can steal cookies and mount Trojans.

The code on this site seems quite tempting (no filtering code is written in the source file), but they also contain anti-injection files, so they are puzzled that the meat they get cannot be used up ,,,

In ku_inc/inc. asp, a function is written as follows:

Private Sub SetPageUrl ()
On Error Resume Next
Dim queryString
Dim tmp_str
Dim tmp_key, tmp_array
QueryString = Request. ServerVariables ("QUERY_STRING") // This sentence is the core
QueryString = Split (Request. ServerVariables ("QUERY_STRING "),"&")
For Each tmp_key In queryString
Tmp_array = Split (tmp_key, "= ")
If tmp_array (0) <> "page" Then
Tmp_str = tmp_str & tmp_array (0) & "=" & tmp_array (1 )&"&"
End If
Next
PageUrl = "http: //" & Request. ServerVariables ("HTTP_HOST") & Request. ServerVariables ("SCRIPT_NAME ")&"? "& Tmp_str
End Sub

This is the anti-injection function of Maple Leaf analyzed by lake2. This is the html code that can be used to bypass the next step, just find the calling file.

Look at the unlucky file that calls this function and then x

Lake2 Original: http://www.bkjia.com/Article/200609/12143.html

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.