(High-vuln) How I Bypassed IP Restrictions, CAPTCHA, and Unlocked
The login API trusted client-supplied headers to determine the caller's IP, so an attacker could bypass an IP allow-list by spoofing a localhost address. The CAPTCHA was only enforced in the browser, and with no rate limiting or account lockout an attacker could run unlimited credential guessing against the admin account.
When I’m hunting, I avoid the obvious www.company.com, api.company.com. Those are picked clean.
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 the backend derived the client IP from client-controlled forwarding headers and enforced the CAPTCHA only in the frontend, with no server-side validation or rate limiting.
Impact
An attacker could bypass the IP allow-list and CAPTCHA and run unlimited credential guessing, which could lead to admin account compromise and full internal panel access.
What the attacker needed
Network access to the login endpoint; no CAPTCHA token needed; no rate limiting or lockout
The fix
The server should determine the client IP from the actual connection rather than client-supplied headers, and it should validate the CAPTCHA and enforce rate limiting and account lockout on the server side.
How it was found
- Send a login request to the API endpoint and observe the IP-based access denial.
- Repeat the request with spoofed forwarding headers set to a localhost address to bypass the IP restriction.
- Omit the CAPTCHA token entirely and observe that the server does not validate it.
- Run automated password guessing at unlimited speed because there is no rate limiting or lockout.
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 server can decide whether to let you in based on the address your request appears to come from. This server believed a label the visitor can write themselves, so anyone could pretend to be a trusted local machine. The picture-check (CAPTCHA) that is meant to slow down automated guessing was only shown in the browser and never checked by the server, so a script could skip it and try passwords as fast as it liked.
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.