Skip to main content

Writing

Notes from the work

Technical write-ups from real engagements and research, what we found, how it was exploited, and what closes it.

mobile security

Insecure data storage on Android: CVE-2018-19981 and the token sitting in plaintext

An access token in SharedPreferences, a password in a log, an admin credential on the SD card. Android isolates app storage well, and then the app writes secrets where isolation does not reach, or where a backup carries them off the device. What to check, where each secret hides, and what to use instead.

container security

Hardening off, namespaces on: container escape and CVE-2022-0492

A container escape is rarely about breaking a sandbox. It is about a capability or a mount the container should never have held. CVE-2022-0492 let a container without CAP_SYS_ADMIN obtain it inside new namespaces and reach root on the host through the cgroups release_agent.

cloud security

Subdomain takeover: the CNAME that outlived the thing it pointed at

A subdomain takeover happens when a DNS record still points at a cloud resource you already deleted, and an attacker recreates that resource to claim your subdomain. Here is the dangling-DNS distinction, a real CVE, a detector you can build against your own zone, and the decommissioning discipline that prevents it.

web security

SAML signature wrapping and Golden SAML: a valid signature on the wrong assertion

A SAML response can carry a genuine, valid signature and still be a forgery, because the service checks that a signature exists rather than that it covers the assertion it trusts. That gap is signature wrapping. Golden SAML is its post-compromise cousin. Here are the real CVEs, a lab, and the verification logic that closes both.

api security

Mass assignment: when the framework writes the fields you never meant to expose

Mass assignment is the binding mechanism behind a whole class of privilege-escalation bugs: the framework copies every key in the request body onto your object, including the ones you never put in the form. Here is how it differs from the BOPLA authorisation question, the real CVEs, a lab, and the allowlist that ends it.

web security

redirect_uri and the PKCE downgrade: two OAuth checks that fail open

OAuth redirect_uri validation and PKCE are two separate defences, and both fail the same way: they permit what they should refuse. Here is how loose redirect matching and a dropped code_challenge each hand an authorization code to an attacker, with the real CVEs, a lab, and the exact server-side checks that close them.

web security

The document that reads your filesystem: XXE in docx, xlsx and SVG parsers

A docx, xlsx or SVG is a bundle of XML, and an XML parser that resolves external entities will fetch files and URLs on the attacker's behalf. CVE-2019-12415 in Apache POI is the office-document case. How XXE reaches an upload endpoint, how to find it, and how to turn it off.

cryptography

ECB byte-at-a-time: recovering a secret you are never shown

If an application encrypts your input concatenated with a secret, and does it in ECB mode, you can extract that secret one character at a time. A complete walkthrough with runnable code. The clearest demonstration of why ECB is not encryption.

api security

Shadow APIs: the v1 endpoint nobody remembered to switch off

Every API inventory is a snapshot of what someone remembered to document. The gap between that list and what your servers actually answer is where breaches live, how to find zombie, shadow and orphaned endpoints, and how to stop creating them.