GitHub’s Trending Bug Hunter Spent an Hour in My App. I’d Missed Everything It Found.
The author reviewed his own Node/Express app and found four issues: a spoofable client IP header that defeated login rate limiting, an SSRF filter bypassed by an IPv4-mapped IPv6 address, a public launch script running in dev mode that accepted unsigned webhooks, and real secrets inside backup archives. An attacker could guess passwords and 2FA codes without limit, reach localhost or cloud metadata, send cart reminder emails to arbitrary addresses, and forge session tokens if a backup leaked.
pub.towardsai.net
Published on pub.towardsai.net
An hour. That’s how long it took the bug hunter everyone on GitHub is starring this week to find four holes in an app I’d already checked twice.
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 app trusted a broad private proxy range for client IPs, compared SSRF blocklist entries as strings before URL normalisation, and ran a public-facing launcher without production mode.
Impact
An attacker with direct access to the app's port could guess passwords and 2FA codes without limit, could reach localhost or cloud metadata through the SSRF filter, and with the public tunnel open could trigger cart reminder emails to any address; the backup exposure was theoretical as nothing is known to have leaked.
What the attacker needed
Direct access to the app's port; public launcher with tunnel open; Shopify store connected without secret; local code review only
The fix
The author recommends trusting only the single front proxy plus a per-account lockout, normalising IPv4-mapped IPv6 addresses before checking and connecting to the checked IP, setting production mode in every public launcher, and keeping the environment file out of backups while rotating secrets.
How it was found
- Send repeated login attempts with a different spoofed forwarding header each time.
- Observe that the rate limiter no longer blocks any attempt.
- Run the app's own URL filter against alternative spellings of localhost.
- Fetch a local-only server through the IPv4-mapped IPv6 form and see it answer.
- Open the public launcher and send an unsigned webhook event.
- List the contents of backup archives and find the environment file.
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.
The app trusted an address the visitor writes themselves, so it could not tell one person from many and stopped counting failed logins. It also tried to block requests to internal machines but only recognised one spelling of the internal address, so a different spelling slipped past. Separately, a demo launch mode skipped signature checks on incoming messages and showed raw errors.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.