Skip to content

Commit

Permalink
http_redirect_scan module
Browse files Browse the repository at this point in the history
feature #692  http_redirect_scan module scans for target websites returning 3xx response code and redirecting users to a different location
  • Loading branch information
securestep9 authored Jul 2, 2023
1 parent bcc5bb6 commit d6eefe7
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions modules/scan/http_redirect
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
info:
name: http_redirect_scan
author: OWASP Nettacker Team
severity: 3
description: HTTP Redirect scan checks if a target website responds with a 3xx status code
reference:
profiles:
- scan
- http
- backup
- low_severity

payloads:
- library: http
steps:
- method: get
timeout: 3
headers:
User-Agent: "{user_agent}"
allow_redirects: false
ssl: false
url:
nettacker_fuzzer:
input_format: "{{schema}}://{target}:{{ports}}/"
prefix: ""
suffix: ""
interceptors:
data:
schema:
- "http"
- "https"
ports:
- 80
- 443
response:
condition_type: or
log: "response_dependent['status_code'] response_dependent['headers']['Location']"
conditions:
status_code:
regex: 3\d\d
reverse: false
headers:
Location:
regex: .*
reverse: false

0 comments on commit d6eefe7

Please sign in to comment.