ZTE MF971R Referer authentication bypass vulnerability
The router's API endpoint uses the Referer header for access control, checking only whether it contains the string '[redacted]'. An attacker can bypass this by crafting a URL with that string in the Referer, allowing access to API commands that should be restricted.
Originally disclosed on Cisco Talos
An exploitable Referer mitigation bypass vulnerability exists in ZTE MF971R LTE router version wainnerversion:BDPLKPLMF971R1V1.0.0B06. A specially-crafted HTTP request can bypass Referer-based mitigation.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The Referer check uses a substring search (strstr) for '[redacted]' instead of validating the full Referer URL, allowing bypass by including that string anywhere in the Referer.
Impact
An attacker could bypass the Referer-based mitigation and access full API communication, potentially exploiting other vulnerabilities.
What the attacker needed
Victim clicks a link or visits a crafted URL; attacker can send requests to the router
The fix
The Referer check should be replaced with strict validation, such as comparing the full Referer URL or using proper authentication.
How it was found
- Craft a URL that includes '[redacted]' in the Referer header.
- Send a request to the API endpoint with that Referer.
- Observe that the API returns data that should be restricted.
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 report has not been written yet. The Original tab links to the source.
The router tries to protect some API commands by checking the 'Referer' header, which tells where a request came from. It only checks if the header contains the text '[redacted]' anywhere, so an attacker can put that text in a URL and trick the router into allowing the request.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.