You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"reasontypes", "rt", "body,header,status,length", "Choose which reason types to use for cache poisoning. Choose from: body (reflection in body),header (reflection in header), status (change of status code), length (change of body length). Default is 'body,header,status,length'")
74
76
appendInt(&generalOptions, &Config.CLDiff,
75
77
"contentlengthdifference", "cldiff", 5000, "Threshold for reporting possible Finding, when 'poisoned' response differs more from the original length. Default is 5000. 0 = don't check. May be prone to false positives!")
ifheader!=nil&&poison!=""&&poison!="http"&&poison!="https"&&poison!="nothttps"&&poison!="1" { // dont check for reflection of http/https/nothttps (used by forwarded headers), 1 (used by DOS) or empty poison
52
+
ifstrings.Contains(Config.ReasonTypes, "header") &&header!=nil&&poison!=""&&poison!="http"&&poison!="https"&&poison!="nothttps"&&poison!="1" { // dont check for reflection of http/https/nothttps (used by forwarded headers), 1 (used by DOS) or empty poison
ifpoison!=""&&poison!="http"&&poison!="https"&&poison!="nothttps"&&poison!="1"&&strings.Contains(body, poison) { // dont check for reflection of http/https/nothttps (used by forwarded headers), 1 (used by DOS) or empty poison
65
+
ifstrings.Contains(Config.ReasonTypes, "body") &&poison!=""&&poison!="http"&&poison!="https"&&poison!="nothttps"&&poison!="1"&&strings.Contains(body, poison) { // dont check for reflection of http/https/nothttps (used by forwarded headers), 1 (used by DOS) or empty poison
66
66
repCheck.Reason=fmt.Sprintf("Reflection Body: Response Body contained poison value %s %d times", poison, strings.Count(body, poison))
0 commit comments