mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-20 18:54:02 +00:00
Varnish Cache is not a proof of Varnish WAF usage
This commit is contained in:
parent
d16252e959
commit
c74c58c47e
3 changed files with 5 additions and 6 deletions
|
|
@ -15,9 +15,8 @@ def detect(get_page):
|
|||
retval = False
|
||||
|
||||
for vector in WAF_ATTACK_VECTORS:
|
||||
page, headers, code = get_page(get=vector)
|
||||
retval = code == 404 and re.search(r"\bXID: \d+", page or "") is not None
|
||||
retval |= code >= 400 and "Request rejected by xVarnish-WAF" in (page or "")
|
||||
page, _, code = get_page(get=vector)
|
||||
retval = code >= 400 and "Request rejected by xVarnish-WAF" in (page or "")
|
||||
if retval:
|
||||
break
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue