0-day cookie injection and repair for Amanda enterprise website system

Source: Internet
Author: User

<% @ LANGUAGE = VBScript. Encode %>
<! -- # Include file = "Inc/SysProduct. asp" -->
<%
ShowSmallClassType = ShowSmallClassType_Article
Dim ID
ID = trim (request ("ID "))
If ID = "" then
Response. Redirect ("cg_Product.asp ")
End if

SQL = "select * from cg_Product where ID =" & ID &""
Set rs = Server. CreateObject ("ADODB. Recordset ")
Rs. open SQL, conn, 1, 3
If rs. bof and rs. eof then
Response. write "<SCRIPT language = JavaScript> alert (this success story cannot be found !); "
Response. write "javascript: history. go (-1) </SCRIPT>"
Else
Rs ("Hits") = rs ("Hits") + 1
Rs. update
%>

Only get post is filtered and cookie injection exists.
Amanda/cg_ProductShow.asp
Http://www.bkjia.com/jmCook.asp? Jmdcw = 169% 20and % 201 = 1

 

Source: fallen leaf s Blog focuses on network security!

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.