Learning notes HTTP parameter pollution injection

Source: Internet
Author: User

HTTP parameter pollution injection originates from the different ways that the Web site handles the same parameters that are submitted.

For example:

Www.XX.com/a?key=ab&key=3

If the server returns the value of the input key, there may be

One: AB

Two: 3

Three: Ad3

These are three different ways.

Specific service-side processing methods are as follows:

Web server

Parameter Get function

The parameters that are obtained

Php/apache

$_get ("par")

Last

Jsp/tomcat

Request.getparameter ("par")

First

Perl (CGI)/apache

Param ("par")

First

Python/apache

Getvalue ("par")

All (List)

Asp/iis

Request.QueryString ("par")

All (comma-delimited string)

Assuming input www.xx.com/a?key=select&key=1,2,3,4 from table

The server may handle the key as a select 1,2,3,4 from table, resulting in SQL injection.

Learning notes HTTP parameter pollution injection

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.