Writing
secure code review
22 articles on this subject.
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.
8 min read
Insecure LLM output handling: CVE-2024-5565 and the model reply that ran as code
Prompt injection gets the model to say something. This is about what happens next: when a sink trusts the model's output and runs it, and when an agent with tools can reach further than anyone intended. The Vanna RCE, the LangChain exec chains, and how to bound both.
9 min read
CI/CD injection: CVE-2023-49291, pull_request_target, and the branch name that ran as your pipeline
A pull request title, a branch name, a commit message: all attacker-controlled, all substituted into a shell script before it runs. Combine that with a trigger that hands out write access and secrets, and a stranger's fork owns your pipeline. How the tj-actions bugs worked and how to find the pattern in your own workflows.
9 min read
Dependency confusion: CVE-2026-54232, torchtriton, and the package name nobody registered
A package name is not an address. When two indexes can answer for the same name, the resolver picks the winner, and in pip's default mode the winner is whoever published the higher version. How vLLM's build got caught, how PyTorch's did, and how to find the same gap in your own manifests.
9 min read
Deleting the file does not remove the secret: git history, and why Toyota's key sat exposed for five years
A committed secret lives in git history and in cached copies on the host, not in the file you deleted. Why a new commit changes nothing, what actually removes it, and why the only safe assumption is that the credential is already burned.
9 min read
Delegation abuse: unconstrained keeps the TGT, constrained trusts the wrong bit
Kerberos delegation lets a service act as you. Unconstrained delegation caches your TGT on the server; constrained and resource-based delegation trust attributes an attacker can often set. What CVE-2020-17049 changed, and how to find and fix delegation in your directory.
8 min read
PetitPotam and the coercion family: making a domain controller authenticate to you, then relaying it
NTLM relay needs a victim to authenticate. Coercion supplies the victim on demand. What CVE-2021-36942 fixed, why PetitPotam and PrinterBug are a family, and how signing, EPA and RPC filters break the chain.
8 min read
Your state file is a plaintext credential store: Terraform secrets and CVE-2024-47083
Terraform stores secrets in state in plaintext by design, and the tooling around it leaks the same secrets into logs and CI. CVE-2024-47083 is one named instance; the sensitive flag protects your terminal, not your state.
8 min read
The bucket was never the secret: object storage exposure and presigned URL abuse
Public buckets, leaked credentials and over-scoped presigned URLs are three different object-storage failures with one outcome. MinIO CVE-2023-28432 shows why the keys, not the objects, are the prize.
9 min read
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.
8 min read
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.
9 min read
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.
9 min read
Writing to __proto__: prototype pollution in Node.js and the lodash defaultsDeep bug
Prototype pollution lets an attacker set a property on every object in a Node process by writing through __proto__. CVE-2019-10744 in lodash is the canonical case. How the merge goes wrong, how to find it, and how it differs from Python class pollution.
9 min read
No 'Access-Control-Allow-Origin' header is present on the requested resource: the error is right, and both popular fixes are vulnerabilities
No 'Access-Control-Allow-Origin' header is present on the requested resource. The two fixes developers copy do not fix CORS, they delete it. One is account takeover.
13 min read
CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate is not corruption, and verify=False is not a fix
CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate means no path to a trusted root. The five real causes, and why verify=False is not a fix.
13 min read
COPY ... TO PROGRAM in mail_logs: what Cisco's CVE-2026-76461 indicator actually means
COPY ... TO PROGRAM is a documented PostgreSQL feature that runs shell commands. Why Cisco's CVE-2026-76461 grep turns SQL injection into root, and how to hunt it.
12 min read
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.
7 min read
BOLA, BFLA, BOPLA: the three authorisation bugs no scanner will find for you
Optus lost roughly 10 million customer records to an API with sequential IDs and no authorisation check. Here is how to tell the three authorisation failures apart, how to test each one, and why automated tools are structurally blind to them.
7 min read
Prototype pollution has a Python cousin: class pollution and the road to __globals__
Python has no prototypes, so it cannot have prototype pollution, except it can. A walkthrough of class pollution: the vulnerable merge function, the four attribute chains that matter, and how to spot it in a code review.
7 min read
Argument injection: how a soft hyphen became CVE-2024-4577 and put 9.8 on the board
You escaped the shell metacharacters and the command still ran. Argument injection is the bug that survives shell-safe APIs, here is the mechanism, the PHP-CGI case that got mass-exploited, and the one-character fix.
7 min read
Pickle is a code format, not a data format: CVE-2025-32434 and the model file you just downloaded
torch.load(weights_only=True) was the recommended safe path, and it was bypassable. A practical look at Python deserialization, pickle, PyYAML and jsonpickle, how one gadget works, and what actually stops it.
12 min read
Server-side template injection: why {{7*7}} is a bad test, and how CVE-2023-22527 got to CVSS 10.0
Most SSTI write-ups teach one Jinja2 payload and stop. Here is the actual bug class, the per-engine probe table, a lab you can build in ten minutes, and the code-review rule that removes it entirely.
9 min read
Other subjects
- detection engineering33
- penetration testing30
- cve analysis26
- web security15
- authorization9
- cloud security9
- active directory7
- api security7
- python7
- cryptography6
- ai security4
- container security4
- linux privilege escalation3
- ssrf3
- identity security2
- insecure deserialization2
- phishing2
- supply chain security2
- windows security2