Sohu spam help center SQL injection vulnerability and Information Leakage vulnerability and repair

Source: Internet
Author: User

Brief description:
The Sohu spam email center is written in python. However, due to incorrect parameter filtering and incorrect program configuration, more information may be leaked.

Detailed description:
HTTP/1.1 500 Internal Server Error

 

Server: nginx/0.7.65

 

Date: Fri, 11 Mar 2011 09:11:19 GMT

 

Content-Type: text/html

 

Transfer-Encoding: chunked

 

Connection: close

 

 

 

F73

 

<! Doctype html public "-// W3C // dtd html 4.01 Transitional // EN" "http://www.w3.org/TR/html4/loose.dtd">

<Html lang = "en">

<Head>

<Meta http-equiv = "content-type" content = "text/html; charset = UTF-8"/>

<Meta name = "robots" content = "NONE, NOARCHIVE"/>

<Title> <class _ mysql_exceptions.ProgrammingError> at/queryip/</title>

<Style type = "text/css">

Html * {padding: 0; margin: 0 ;}

Body * {padding: 10px 20px ;}

Body ** {padding: 0 ;}

Body {font: small sans-serif ;}

Body> div {border-bottom: 1px solid # ddd ;}

H1 {font-weight: normal ;}

H2 {margin-bottom:. 8em ;}

H2 span {font-size: 80%; color: #666; font-weight: normal ;}

H3 {margin: 1em 0. 5em 0 ;}

H4 {margin: 0 0. 5em 0; font-weight: normal ;}

Table {

Border: 1px solid # ccc; border-collapse: collapse; background: white ;}

Tbody td, tbody th {vertical-align: top; padding: 2px 3px ;}

Thead th {

Padding: 1px 6px 1px 3px; background: # fefefefe; text-align: left;

Font-weight: normal; font-size: 11px; border: 1px solid # ddd ;}

Tbody th {text-align: right; color: #666; padding-right:. 5em ;}

Table. vars {margin: 5px 0 2px 40px ;}

Table. vars td, table. req td {font-family: monospace ;}

Table td. code {width: 100% ;}

Table td. code div {overflow: hidden ;}

Table. source th {color: #666 ;}

Table. source td {

Font-family: monospace; white-space: pre; border-bottom: 1px solid # eee ;}

Ul. traceback {list-style-type: none ;}

Ul. traceback li. frame {margin-bottom: 1em ;}

Div. context {margin: 10px 0 ;}

Div. context ol {

Padding-left: 30px; margin: 0 10px; list-style-position: inside ;}

Div. context ol li {

Font-family: monospace; white-space: pre; color: #666; cursor: pointer ;}

Div. context ol. context-line li {color: black; background-color: # ccc ;}

Div. context ol. context-line li span {float: right ;}

Div. commands {margin-left: 40px ;}

Div. commands a {color: black; text-decoration: none ;}

# Summary {background: # ffc ;}

# Summary h2 {font-weight: normal; color: #666 ;}

# Explanation {background: # eee ;}

# Template, # template-not-exist {background: # f6f6f6 ;}

# Template-not-exist ul {margin: 0 0 0 20px ;}

# Traceback {background: # eee ;}

# Requestinfo {background: # f6f6f6; padding-left: 120px ;}

# Summary table {border: none; background: transparent ;}

# Requestinfo h2, # requestinfo h3 {position: relative; margin-left:-100px ;}

# Requestinfo h3 {margin-bottom:-1em ;}

. Error {background: # ffc ;}

. Specific {color: # cc3300; font-weight: bold ;}

</Style>

<Script type = "text/javascript">

// <! --

Function getElementsByClassName (oElm, strTagName, strClassName ){

// Written by Jonathan Snook, http://www.snook.ca/jon;

// Add-ons by Robert Nyman, http://www.robertnyman.com

Var arrElements = (strTagName = "*" & document. all )? Document. all:

OElm. getElementsByTagName (strTagName );

Var arrReturnElements = new Array ();

StrClassName = strClassName. replace (/-/g ,"-");

Var oRegExp = new RegExp ("(^ | s)" + strClassName + "(s | $ )");

Var oElement;

For (var I = 0; I <arrElements. length; I ++ ){

OElement = arrElements;

If (oRegExp. test (oElement. className )){

ArrReturnElements. push (oElement );

}

}

Return (arrReturnElements)

}

Function hideAll (elems ){

For (var e = 0; e <elems. length; e ++ ){

Elems [e]. style. display = none;

}

}

Window. onload = function (){

HideAll (getElementsByClassName (document, table, vars ));

HideAll (getElementsByClassName (document, ol, pre-context ));

HideAll (getElementsByClassName (document, ol, post-context ));

}

Function toggle (){

For (var I = 0; I <arguments. length; I ++ ){

Var e = document. getElementById (arguments );

If (e ){

 

 

1000

 

E. style. display = e. style. display = none? Block: none;

}

}

Return false;

}

Function varToggle (link, id ){

Toggle (v + id );

Var s = link. getElementsByTagName (span) [0];

Var uarr = String. fromCharCode (0x25b6 );

Var darr = String. fromCharCode (0x25bc );

S. innerHTML = s. innerHTML = uarr? Darr: uarr;

&

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.