Skip to content
Open redirect Write-up Intermediate

Hunting on Government Infrastructure: WAF Bypasses, OAuth Testing

The author describes a reconnaissance methodology against a hardened government healthcare portal, where the WAF blocked requests until a custom User-Agent required by the program rules was added. They then tested an OAuth redirect_uri parameter for open redirect bypasses, but the server's strict validation held, so they pivoted to other assets.

Sathya Follow

Published on medium.com

In the world of bug bounty hunting, success isn’t just about finding the critical bug on your first try; it is about methodology, WAF evasion, and knowing exactly when to pivot.

Sathya, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely no vulnerability was found; the WAF blocked traffic until the program-mandated User-Agent was supplied, and the OAuth redirect_uri validation was strict.

Impact

No impact was demonstrated: the WAF was bypassed only by following program rules, and the OAuth redirect_uri validation blocked all tested open-redirect attempts.

What the attacker needed

Program rules require a custom User-Agent; access to a development subdomain; Burp Suite for request interception

How it was found

  1. Enumerate subdomains with subfinder.
  2. Filter live hosts with httpx-toolkit, which returned many 403 responses.
  3. Add the custom User-Agent required by the program rules to httpx-toolkit, turning 403s into 200s and 302s.
  4. Intercept a request to a development subdomain and observe an OAuth redirect_uri parameter.
  5. Replace redirect_uri with an external URL and send the request in Burp Repeater.
  6. Try appended-subdomain and directory-traversal bypasses, all of which failed.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A Web Application Firewall (WAF) is a filter that blocks suspicious traffic. The researcher found that the program's rules required a special header in every request, and adding it let their tools through. They then checked whether a login redirect parameter could be tricked into sending users to another site, but the server rejected every attempt.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.