-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.ProposalProposal-AcceptedSecurityrelease-blocker
Milestone
Description
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version
)?
go1.10.1 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env
)?
CentOS 7 with kernel 3.10.0-514.10.2.el7.x86_64
What did you do?
I create a program to detect attack such as SQL Injection, when test case is:
http://..../testcase?id=1%27;--
and I use:
r.ParseForm()
params := r.Form
fmt.Println("params:", params, "count:", len(params))
for key, values := range params {
fmt.Println("param", key, ":", values)
}
Got:
params: map[--:[] id:[1']] count: 2
param id : [1']
param -- : []
What did you expect to see?
expect only one expression in this case:
key: id
value: 1';--
What did you see instead?
I got two key:[value] pairs.
likebike, mewmew, pymq, reves, pankaj-nikam and 9 moresrfrog, rafaelsierra and ZectbumoJetereting
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.ProposalProposal-AcceptedSecurityrelease-blocker