Learning security in the open :)
I’m a Penetration tester. I write up each topic as I learn it
the Vulnerabilities, the Tools, the Concepts that finally clicked
latest Routing-based SSRF
- 223writeups
- 221boxes rooted
- 5Certification
Latest writeups
All writeups-
Medium
Routing-based SSRF
routing-based SSRF via the Host header where the front-end middleware forwards requests to whatever host you name, confirmed with a Collaborator payload, then used to sweep 192.168.0.0/24 in Intruder (deselecting "Update Host header to match target") to find the internal admin panel and craft a GET /admin/delete?csrf=...&username=carlos to delete carlos
HTTP Host header 2 min -
Easy
Web cache poisoning via ambiguous requests
web cache poisoning via an ambiguous request where a duplicate Host header splits the cache and back-end: the cache keys on the first legitimate host while the app reflects the second attacker-controlled host into an absolute script URL, so pointing it at an exploit server hosting tracking.js caches a home page that runs alert(document.cookie) for every visitor
HTTP Host header 3 min -
Easy
Host header authentication bypass
host header authentication bypass where the admin panel is restricted to local users but locality is judged from the client-controlled Host header, so setting Host: localhost on GET /admin opens the panel and GET /admin/delete?username=carlos deletes carlos
HTTP Host header 2 min -
Easy
Basic password reset poisoning
password reset poisoning where the reset email builds its link from the attacker-controlled Host header, so triggering POST /forgot-password for carlos with the Host set to the exploit server delivers his valid reset token to a link pointing at our domain, captured from the access log when he clicks and replayed into the genuine reset URL to take over his account
HTTP Host header 2 min -
Hard
Bypassing access controls using email address parsing discrepancies
access-control bypass via an email parser discrepancy where registration validates only the @ginandjuice.shop suffix but the mail library decodes RFC 2047 encoded-words, so a UTF-7 encoded-word that the validator ignores smuggles attacker@exploit-server into the address and the confirmation link is delivered to the attacker while the domain check still passes
Business logic 2 min -
Insane
Authentication bypass via encryption oracle
authentication bypass via an encryption oracle where the notification cookie is encrypted with the same key as stay-logged-in, so the comment error feature becomes an encrypt/decrypt oracle used to read the login cookie's username:timestamp format, then forge an administrator cookie by block-aligning and byte-deleting the fixed "Invalid email address: " prefix in Decoder
Business logic 4 min -
Medium
Infinite money logic flaw
business logic flaw where a SIGNUP30 coupon drops a $10 gift card to $7 but it still redeems for $10, netting $3 per buy-and-redeem cycle, automated with a Burp session-handling macro that carries the card code from the confirmation response into POST /gift-card and fired 412 times via Intruder until the credit covers the jacket
Business logic 3 min