# Path Traversal
> Untrusted input becomes part of a filesystem (or internal URL) path without being resolved and confined to an intended root, so the operation reads, writes or includes a location the developer never meant to expose (CWE-22).
## What it is
- **Root cause:** a value from outside the trust boundary (request parameter, filename in a multipart header, archive entry name, manifest field, symlink target, organization name, syslog header) is concatenated or joined into a path and handed to a filesystem API. The code reasons about the *string*; the OS acts on the *resolved location*.
- **The trust boundary that breaks** is the directory the feature is supposed to own: an upload folder, a theme directory, a repo worktree, a container, a model store. Anything that lets the resolved path leave that root breaks it.
- **Three recurring design errors** in the notes:
- Validating the string instead of the resolved path. Flask-Admin's `FileAdmin` used `normpath(...).startswith(base)`, so a sibling directory sharing the prefix passed. [[raw/infosecwriteups.com/how-i-found-a-high-severity-directory-traversal-in-flask-admin-10887|How I Found a High-Severity Directory Traversal in Flask-Admin]]
- Validating one field or one entry point but not another. SmarterMail sanitized the uploaded filename but trusted a `guid` directory component [[raw/labs.watchtowr.com/smartertools-smartermail-pre-auth-rce-cve-2025-52691-4257|SmarterTools SmarterMail Pre-Auth RCE (CVE-2025-52691)]]; Gogs sanitized usernames at registration but not organization names created through the API [[raw/aikido.dev/yet-another-rce-in-gogs-but-it-s-fixed-this-time-11555|Yet another RCE in Gogs, but it's fixed this time!]].
- Ignoring symlinks and races. Gogs' fix for CVE-2024-55947 validated path names but not where a committed symlink pointed [[raw/wiz.io/gogs-zero-day-rce-cve-2025-8110-actively-exploited-3552|Gogs Zero-Day RCE (CVE-2025-8110) Actively Exploited]]; Docker's `cp` checked a value that differed from the one it used [[raw/imperva.com/copyescape-container-to-host-arbitrary-file-write-via-docker-cp-cve-20-11286|CopyEscape: Container-to-host arbitrary file write via docker cp (CVE-2026-17106)]].
- The same flaw applies to paths on a *second server*: a proxy that splices user input into an internal request path walks the internal service's route tree (Starbucks) rather than a disk. [[raw/masimshahzad.medium.com/starbucks-path-traversal-nearly-100m-customer-records-15231|Starbucks Path Traversal: Nearly 100M Customer Records]]
## Why it matters
Impact depends on the primitive (read, write, include, delete) and the process's privileges.
| Primitive | Typical impact | Example |
|---|---|---|
| Arbitrary read | Secrets, source, config, backups, credentials | UniFi captive portal reads controller backups holding admin creds (CVSS 10.0) |
| Arbitrary read via proxy | Mass data exposure on an internal API | Starbucks: ~100M customer records |
| Arbitrary write | RCE via cron, web root, hooks, preload, templates | FortiSIEM, Check Point, vCenter, SmarterMail, Splunk |
| Local file inclusion | Code execution in the interpreter | WP Ghost, WordPress core page templates, Discuz! |
| Key/file selection | Auth bypass | JWT `kid` pointing at a predictable file |
- **Severity drivers:** unauthenticated reach, root/SYSTEM process (Ollama in Docker runs as root and listens on all interfaces), control over both content and filename, and whether the write is overwrite or append-only. [[raw/wiz.io/probllama-ollama-remote-code-execution-vulnerability-cve-2024-37032-ov-9625|Probllama: Ollama Remote Code Execution Vulnerability (CVE-2024-37032) – Overview and Mitigations]]
- **Write-to-RCE is a solved problem on most targets.** The DEF CON Bug Bounty Village catalogue grades a write on four dimensions and lists sinks by environment: cron (good on VMs, useless in most containers), systemd (needs enable and reload), `/etc/ld.so.preload` (fires on every new process), and line-oriented targets such as `authorized_keys`, shell profiles and `.user.ini` for append-only writes. It also notes that a write primitive doubles as a path-existence oracle. [[raw/ethiack.com/write-once-shell-everywhere-turning-arbitrary-file-writes-into-rce-def-11195|Write Once, Shell Everywhere - Turning Arbitrary File Writes into RCE (DEF CON Bug Bounty Village)]]
- **Headline breaches:** Gogs CVE-2025-8110 was exploited as a zero-day, with 700+ compromised public instances found [[raw/wiz.io/gogs-zero-day-rce-cve-2025-8110-actively-exploited-3552|Gogs Zero-Day RCE (CVE-2025-8110) Actively Exploited]]; Check Point CVE-2026-93616 is exploited in the wild against the server holding firewall policy and the internal CA [[raw/bishopfox.com/one-port-to-root-weaponizing-check-point-management-cve-2026-93616-12179|One Port to Root: Weaponizing Check Point Management CVE-2026-93616]]; Apple paid $150,000 for a PCC archive traversal that wrote files as root at boot [[raw/blog.sentry.security/beyond-prompt-injection-hacking-apple-s-private-cloud-compute-11210|Beyond Prompt Injection: Hacking Apple's Private Cloud Compute]].
## How it works
### Normalization and canonicalization
- **Normalization** rewrites a path string (collapse dot segments, duplicate separators). **Canonicalization** asks the filesystem for the real location, which also resolves symlinks. Only the second answers "where will this land?"
- **String prefix checks are not containment.** A sibling such as `uploads_secret` starts with `uploads`; the Imperva writeup makes the same point about `/safe/output-elsewhere`. [[raw/infosecwriteups.com/how-i-found-a-high-severity-directory-traversal-in-flask-admin-10887|Flask-Admin]] [[raw/imperva.com/copyescape-container-to-host-arbitrary-file-write-via-docker-cp-cve-20-11286|CopyEscape]]
- **Decode and normalize order matters.** When a WAF, reverse proxy and app server each decode or normalize differently, the check runs on one form and the filesystem or router sees another. This drove the Starbucks proxy bug (a separator variant passed the WAF), ForgeRock path confusion (Jetty decoded and stripped path parameters after the edge allowed the request), and Nginx/servlet differences. See [[URL Parser Differentials]]. [[raw/samcurry.net/hacking-two-automakers-forgerock-path-confusion-rce-and-remote-vehicle-13612|Hacking Two Automakers: ForgeRock Path Confusion, RCE, and Remote Vehicle Access]] [[raw/rafa.hashnode.dev/research-exploiting-http-parsers-inconsistencies-990|(Research) Exploiting HTTP Parsers Inconsistencies]]
- **Unicode normalization and best-fit mappings** can turn benign input into separators after validation (PortSwigger 2025 nominee list). [[raw/portswigger.net/top-10-web-hacking-techniques-of-2025-call-for-nominations-4820|Top 10 Web Hacking Techniques of 2025: Call for Nominations]]
- **Null bytes and forced suffixes.** FortiSIEM let the attacker choose the directory but appended its own filename; null-byte handling was part of the chain. ColdFusion's fix explicitly rejects NUL. [[raw/horizon3.ai/cve-2026-106173-deep-dive-fortinet-fortisiem-grpc-path-traversal-file-12311|CVE-2026-106173 Deep-Dive: Fortinet FortiSIEM gRPC Path Traversal File Write to RCE]]
- **Symlinks** move the escape from the string into the filesystem, after validation has run. Git stores symlinks (mode `120000`) and recreates them on clone, so a repo is an attacker-controlled filesystem. [[raw/snyk.io/symlinks-are-still-scary-and-yes-you-can-commit-them-to-git-10268|Symlinks Are Still Scary (And Yes, You Can Commit Them to Git)]] Variants: dangling symlinks followed on write in `@tinacms/graphql` [[raw/github.com/tinacms-graphql-symlink-path-traversal-14898|@tinacms/graphql symlink path traversal]]; iOS `containermanagerd` resolving an app-planted symlink and minting a sandbox token for the target [[raw/melv.in/worse-finder-every-app-container-on-ios-one-symlink-away-15753|worse_finder: every app container on iOS, one symlink away]].
- **TOCTOU.** A check on a path the attacker can change (their own symlink, a live container filesystem) is raced. CopyEscape combined a source-walk race with a symlink-following extraction. [[raw/imperva.com/copyescape-container-to-host-arbitrary-file-write-via-docker-cp-cve-20-11286|CopyEscape]]
### Archive extraction
Entry names and link targets inside zip/tar/cryptex archives are attacker-controlled paths. Extracting without per-entry containment is [[Zip Slip and Archive Extraction|Zip Slip]].
### Include mechanisms
When the sink is an interpreter's include (PHP `include`/`require`, template resolution), traversal becomes code execution if any reachable file contains or can be made to contain code. See [[Local File Inclusion]].
### Client-side path traversal (CSPT)
User input placed in a path the *browser* fetches lets an attacker redirect an authenticated same-origin request to another API route. Grafana chained this with an open redirect to load attacker JS and take over accounts (CVE-2025-4123, then the incomplete-fix CVE-2025-6023). CSPT also drives destructive state-changing requests, a [[Cross-Site Request Forgery]] analogue. [[raw/medium.com/grafana-cve-2025-4123-full-read-ssrf-account-takeover-3235|Grafana CVE-2025–4123: Full Read SSRF & Account Takeover]] [[raw/opswat.com/grafana-cve-2025-6023-full-account-takeover-4097|Grafana CVE-2025-6023: Full Account Takeover]] [[raw/portswigger.net/top-10-web-hacking-techniques-of-2022-portswigger-research-991|Top 10 web hacking techniques of 2022 - PortSwigger Research]] [[raw/getdisclosed.com/disclosed-4-3m-paid-in-hackerone-lhes-portswigger-top-10-released-2999|Disclosed: $4.3m Paid in HackerOne LHEs, PortSwigger Top 10 Released]]
## Where to find it
| Sink / feature | Examples from the notes |
|---|---|
| File download / static serving | UniFi portal `new File(dir + "/" + path)`; Grafana static handler; Flask-Admin `FileAdmin` |
| Upload destination | Filename from `Content-Disposition`, `uploadPath`/`guid`/`name` params; Flask-Reuploaded `save(name=...)`; Check Point upgrade service |
| Path built from an identifier | Ollama manifest `digest`; Gogs org name via Go `path.Join`; JWT `kid`; Frappe SCORM chapter title |
| Backup / restore / export | Splunk PostgreSQL sidecar `backupFile` passed to the dump tool |
| Logging / syslog | vCenter syslog templates splicing a header field into a file path |
| RPC / gRPC file operators | ColdFusion RDS `FileReadOperator`/`FileWriteOperator`; FortiSIEM gRPC `SendQueryResult` |
| Archive extraction | `tarfile`, `zipfile`, `shutil.unpack_archive`, libarchive, `docker cp`, SCORM/plugin packages |
| Include / template resolution | PHP `include`, WordPress `get_page_template()`, WP Ghost `showFile()` |
| Server-side proxies (BFF) | Input inserted into an internal API path |
| AI agent / MCP tools | File-reader tools without a root; 82% of 2,614 MCP servers analysed use path-traversal-prone file ops |
| Mobile content providers | Android `_display_name` used as a filename (Xiaomi Mi Browser) |
| Repo-consuming tools | Build scripts, editors and AI coding agents reading through committed symlinks |
## How to review and test
Code review:
- [ ] Trace every filesystem call (`open`, `File`, `Path`, `readFile`, `include`, `extract*`, `copy`, `rename`, `unlink`) back to its inputs. Include indirect inputs: archive entries, manifests, DB fields, headers, filenames from clients.
- [ ] Is the check done on the **canonical** path, after symlink resolution, and compared component-wise to the canonical root? Flag `startswith`/`indexOf` on strings.
- [ ] Is the value that is checked the value that is used? Look for re-reads, re-joins and later decoding.
- [ ] Is every component validated (directory *and* filename), on every entry point (UI, API, import, RPC)?
- [ ] Does the code follow symlinks the attacker can create (git checkouts, uploaded archives, shared containers, app groups)? Is there a TOCTOU window?
- [ ] Are archives extracted with per-entry containment and link handling? Are stdlib filters up to date (see [[Zip Slip and Archive Extraction]])?
- [ ] Does any include/template loader take user input? Is there an allowlist?
- [ ] Do patches cover sibling paths? CVE-2025-8110, CVE-2025-6023 and CVE-2026-22559 were all bypasses or variants of earlier fixes.
- [ ] Does an AI/MCP tool enforce a root in code, not in the prompt?
Behavioral testing (what to observe, not payloads):
- [ ] Map every parameter that names a file, directory, key, template, locale or ID used in storage. Check whether returned paths or messages reflect your input unnormalized (the blind-upload case leaked the constructed path in its response). [[raw/infosecwriteups.com/escalating-a-blind-upload-to-rce-via-path-traversal-into-cron-and-dns-11369|Escalating a Blind Upload to RCE via Path Traversal into Cron and DNS-Restricted Callback Bypass]]
- [ ] Use error-class differences (not found vs bad request) to tell whether input reaches an internal service and where its root is (Starbucks).
- [ ] Consider secondary-context APIs and proxies, browser path handling and how each server layer processes path components. [[raw/nahamsec.com/top-vulnerabilities-for-pentest-bug-bounty-in-2025-4269|Top Vulnerabilities for Pentest & Bug Bounty in 2025]]
- [ ] Decide whether the traversal reaches the host's real filesystem or only an app storage layer before claiming RCE.
- [ ] For writes, grade the primitive (overwrite vs append, name control, privileges) and pick a sink that exists on the target (no cron in containers).
- [ ] Diff patched vs unpatched builds for n-days; vendors often fix silently (SmarterMail build 9413 shipped months before the advisory).
## Real-world cases
- Starbucks BFF proxy — no CVE — path segment into internal API exposed ~100M customer records, $4,000. [[raw/masimshahzad.medium.com/starbucks-path-traversal-nearly-100m-customer-records-15231|Starbucks Path Traversal]]
- Ollama — CVE-2024-37032 — unvalidated manifest `digest` gives arbitrary write, RCE as root in Docker. [[raw/wiz.io/probllama-ollama-remote-code-execution-vulnerability-cve-2024-37032-ov-9625|Probllama]]
- Gogs — CVE-2025-8110 — symlink bypass of CVE-2024-55947 via PutContents, exploited in the wild. [[raw/wiz.io/gogs-zero-day-rce-cve-2025-8110-actively-exploited-3552|Gogs Zero-Day RCE]]
- Gogs — CVE-2026-52813 — org name joined into repo root via the API, bare repo plus git hooks for RCE. [[raw/aikido.dev/yet-another-rce-in-gogs-but-it-s-fixed-this-time-11555|Yet another RCE in Gogs]]
- SmarterMail — CVE-2025-52691 — unauthenticated upload with traversal in `guid`, web shell in IIS root. [[raw/labs.watchtowr.com/smartertools-smartermail-pre-auth-rce-cve-2025-52691-4257|SmarterMail Pre-Auth RCE]]
- FortiSIEM — CVE-2026-106173 — unauthenticated gRPC write overwrote a cron-executed script for RCE. [[raw/horizon3.ai/cve-2026-106173-deep-dive-fortinet-fortisiem-grpc-path-traversal-file-12311|FortiSIEM gRPC Path Traversal]]
- Check Point Management — CVE-2026-93616 — unauthenticated root write on TCP 19009, cron job, exploited ITW. [[raw/bishopfox.com/one-port-to-root-weaponizing-check-point-management-cve-2026-93616-12179|One Port to Root]]
- vCenter — CVE-2026-59310 — syslog header spliced into a file path, pre-auth write to RCE (CVSS 9.8). [[raw/mobeta.fr/vcenter-pre-auth-rce-cve-2026-59309-59310-12074|vCenter pre-auth RCE]]
- Splunk Enterprise — CVE-2026-20253 — unauthenticated sidecar `backupFile` traversal, file write to RCE. [[raw/labs.watchtowr.com/why-use-app-level-auth-when-every-database-has-auth-splunk-enterprise-9116|Splunk Enterprise CVE-2026-20253]]
- Adobe ColdFusion RDS — CVE-2026-48282 / 48313 — file read/write through RPC operators, fixed with `resolveCanonical`. [[raw/labs.watchtowr.com/it-s-37oc-and-all-we-can-think-about-is-coldfusion-adobe-coldfusion-se-10082|ColdFusion APSB26-68]]
- UniFi Network Application — CVE-2026-22557 — unauthenticated portal file read of credential backups, CVSS 10.0. [[raw/bishopfox.com/looting-unifi-controllers-detecting-and-weaponizing-cve-2026-22557-8563|Looting UniFi Controllers]]
- Apple PCC `darwin-init` — CVE-2026-20685 — unsanitized archive entries written as root at boot, $150k. [[raw/blog.sentry.security/beyond-prompt-injection-hacking-apple-s-private-cloud-compute-11210|Hacking Apple's PCC]]
- Docker `docker cp` — CVE-2026-17106 — container-to-host write via a tar race plus symlink following. [[raw/imperva.com/copyescape-container-to-host-arbitrary-file-write-via-docker-cp-cve-20-11286|CopyEscape]]
- Frappe LMS — CVE-2026-39405 — SCORM title used as extraction dir, `api.py` overwrite for RCE. [[raw/rhinosecuritylabs.com/multiple-vulnerabilities-in-frappe-lms-leading-to-remote-code-executio-12026|Frappe LMS RCE]]
- Flask-Reuploaded — CVE-2026-27641 — `name` parameter traversal plus extension bypass, SSTI to RCE. [[raw/github.com/cve-2026-27641-flask-reuploaded-path-traversal-enabling-ssti-rce-4979|Flask-Reuploaded CVE-2026-27641]]
- @tinacms/graphql — CVE-2026-129861 — writes through dangling symlinks bypass `assertWithinBase`. [[raw/github.com/tinacms-graphql-symlink-path-traversal-14898|@tinacms/graphql symlink path traversal]]
- WordPress core — 4.7 to 7.1.1 — unauthenticated page-template LFI, conditional RCE. [[raw/github.com/wordpress-unauthenticated-path-traversal-leading-to-conditional-rce-12075|WordPress path traversal]]
- WP Ghost — CVE-2025-26909 — unauthenticated LFI to RCE, 200k+ sites. [[raw/patchstack.com/critical-lfi-to-rce-in-wp-ghost-plugin-affecting-200k-sites-3488|WP Ghost LFI]]
- ManageEngine ADAudit Plus — CVE-2022-28219 — traversal in `/cewolf` lets a planted file be deserialized, chained with blind XXE. [[raw/rapid7.com/rapid7-analysis-cve-2022-28219-9358|Rapid7 Analysis: CVE-2022-28219]]
- Xiaomi Mi Browser — CVE-2026-127209 — content-provider `_display_name` used as filename, write outside staging dir. [[raw/securityvulnerability.io/cve-2026-127209-path-traversal-in-xiaomi-mi-browser-app-14595|Xiaomi Mi Browser]]
- iOS `containermanagerd` — no CVE — symlinked App Group part yields read-write sandbox token for other containers. [[raw/melv.in/worse-finder-every-app-container-on-ios-one-symlink-away-15753|worse_finder]]
- AWS `aidlc-traceability` — no CVE — LLM file-reader tool with no root; fixed with read-boundary enforcement. [[raw/medium.com/giving-an-ai-agent-a-file-reader-without-a-fence-arbitrary-file-read-i-12509|AI Agent File Reader]]
- Flask-Admin `FileAdmin` — duplicate report — `startswith` containment check escaped via sibling directory. [[raw/infosecwriteups.com/how-i-found-a-high-severity-directory-traversal-in-flask-admin-10887|Flask-Admin]]
- Next.js — CVE-2026-75604 and Telerik UI for ASP.NET AJAX — CVE-2026-18672 — unauthenticated traversal listed as hacker-relevant in week 44 2026. [[raw/entryzero.ai/top-5-hacker-relevant-vulnerabilities-week-44-2026-13263|Top 5 hacker-relevant vulnerabilities (week 44 2026)]]
## Prevention
1. **Don't let users name paths.** Map an ID to a server-side path through a lookup table, or generate filenames server-side (UUIDs). The JWT `kid` remediation is the canonical pattern. [[raw/invicti.com/jwt-signature-bypass-via-kid-path-traversal-4111|JWT Signature Bypass via kid Path Traversal]]
```js
const KEYS = { 'key-2024-01': '/secure/keys/2024-01.pem' };
if (!Object.hasOwn(KEYS, kid)) throw new Error('Invalid key identifier');
const key = fs.readFileSync(KEYS[kid]);
```
2. **Canonicalize, then verify containment component-wise.** Resolve the root and the candidate (following symlinks) and require the candidate to be inside the root. AWS's fix and the sibling `_resolve_safe()` helper do this; `Path.resolve()` also closes the symlink escape. [[raw/medium.com/giving-an-ai-agent-a-file-reader-without-a-fence-arbitrary-file-read-i-12509|AI Agent File Reader]] [[raw/medium.com/python-secure-coding-guidelines-2857|Python Secure Coding Guidelines]]
```python
ROOT = Path("/srv/app/files").resolve()
def safe_path(user_rel: str) -> Path:
p = (ROOT / user_rel).resolve()
if not p.is_relative_to(ROOT): # component-wise, not str.startswith
raise PermissionError("outside root")
return p
```
Java equivalent, as in UniFi's fix (`toRealPath()` containment) and ColdFusion's `resolveCanonical` (reject empty, NUL, parent segments, absolute paths, and anything resolving outside the allowed area):
```java
if (userRel.isEmpty() || userRel.indexOf('\0') >= 0) throw new SecurityException("bad path");
Path root = baseDir.toRealPath();
Path real = root.resolve(userRel).normalize().toRealPath(); // resolves symlinks; file must exist
if (!real.startsWith(root)) throw new SecurityException("outside root"); // Path.startsWith is per-component
```
3. **Kill the TOCTOU.** A `realpath()` check followed by `open()` can be raced. On Linux use `openat2()` with `RESOLVE_BENEATH` or `RESOLVE_NO_SYMLINKS` so the kernel enforces the boundary in one step; `O_NOFOLLOW` covers only the last component. Imperva's conclusion for `docker cp`: filesystem operations must be rooted so the kernel, not a string comparison, guarantees containment. [[raw/snyk.io/symlinks-are-still-scary-and-yes-you-can-commit-them-to-git-10268|Symlinks Are Still Scary]] [[raw/imperva.com/copyescape-container-to-host-arbitrary-file-write-via-docker-cp-cve-20-11286|CopyEscape]]
4. **Sanitize filenames with framework helpers and also enforce policy.** Flask-Reuploaded's workaround: `secure_filename`, then `os.path.basename`, then an extension allowlist, or auto-generated names only. [[raw/github.com/cve-2026-27641-flask-reuploaded-path-traversal-enabling-ssti-rce-4979|Flask-Reuploaded]]
```python
safe = os.path.basename(secure_filename(request.form["custom_name"]))
if not photos.extension_allowed(photos.get_extension(safe)):
abort(400)
photos.save(file, name=safe)
```
5. **Validate every component and entry point.** The directory part (`guid`, org name, chapter title, `uploadPath`) needs the same treatment as the filename, on API routes as well as the UI.
6. **Allowlist includes and templates.** Never pass request data to an include; see [[Local File Inclusion]].
7. **Extract archives safely.** Per-entry containment, reject or neutralize links, keep stdlib current; see [[Zip Slip and Archive Extraction]].
8. **Contain the blast radius.** Run file-handling services unprivileged (Ollama-in-Docker as root made writes critical), store uploads outside executable directories (see [[Unrestricted File Upload]]), sandbox extraction, and treat cloned repos as untrusted before pointing tools or agents at them. [[raw/aikido.dev/python-security-vulnerabilities-top-issues-aikido-2859|Python Security Vulnerabilities - Top Issues - Aikido]]
9. **Normalize once, at the edge that routes.** Reject or canonicalize path parameters and encoded separators so the WAF, proxy and app agree (IBM Db2 Mirror fix advice: use container-normalized servlet info, reject unexpected path parameters, confine reads to an allowlisted directory with canonical-path checks). [[raw/blog.silentsignal.eu/ibm-db2-mirror-for-i-pre-auth-rce-and-the-road-to-qsecofr-12019|IBM Db2 Mirror for i: pre-auth RCE and the road to QSECOFR]]
10. **Monitor for the write.** For root-write bugs, file-integrity monitoring catches exploitation better than log greps (Check Point guidance).
## Tools
- **Static analysis:** Aikido SAST flags `tarfile.extractall()` without member filtering (CVE-2007-4559) [[raw/aikido.dev/python-security-vulnerabilities-top-issues-aikido-2859|Aikido]]; Bandit's `tarfile_unsafe_members` rule is covered in [[Python SAST Tools]]. Semgrep and CodeQL path-injection rules are not covered by the cited notes.
- **Practice corpora:** YesWeHack vulnerable code snippets include several path-traversal, LFI and upload snippets for review training. [[raw/github.com/yeswehack-vulnerable-code-snippets-twitter-vulnerable-snippets-1498|GitHub - yeswehack/vulnerable-code-snippets]]
- **Fuzzing:** `ffuf` with generated depth wordlists (`cook`) instead of stock lists, which the author calls weak for traversal; see [[Web Fuzzing]]. [[raw/acceis.fr/ffuf-advanced-tricks-acceis-6123|ffuf advanced tricks - ACCEIS]]
- **Patch-state checkers:** Bishop Fox's CVE-2026-22557 (UniFi) and CVE-2026-93616 (Check Point) detection tools. [[raw/bishopfox.com/looting-unifi-controllers-detecting-and-weaponizing-cve-2026-22557-8563|Looting UniFi Controllers]]
- **Repo hygiene:** list symlinks (`find . -type l`, or `git ls-files -s` and look for mode `120000`) after cloning untrusted repos. [[raw/snyk.io/symlinks-are-still-scary-and-yes-you-can-commit-them-to-git-10268|Symlinks Are Still Scary]]
- **AI attack surface:** CloudSEK AIVigil found an unauthenticated MCP server whose fetch tool accepted `file://` (see [[Local File Read via SSRF]], [[MCP Security]]). [[raw/cloudsek.com/how-an-unauthenticated-mcp-server-led-to-ssrf-lfi-and-aws-credential-t-8426|CloudSEK MCP Server]]
## Sub-pages
- [[Zip Slip and Archive Extraction]]: archive entry names and links as attacker-controlled paths; safe extraction.
- [[Local File Inclusion]]: traversal into an interpreter's include; include-to-RCE and allowlisting.
Related: [[Unrestricted File Upload]] · [[Web Shells]] · [[Remote Code Execution]] · [[Local File Read via SSRF]] · [[URL Parser Differentials]] · [[Cross-Site Request Forgery]] · [[JWT Header Injection]] · [[Unsafe Python Functions]] · [[Python Security]] · [[MCP Security]] · [[Vulnerability Chaining]]
## Sources
- [[raw/masimshahzad.medium.com/starbucks-path-traversal-nearly-100m-customer-records-15231|Starbucks Path Traversal: Nearly 100M Customer Records]]
- [[raw/infosecwriteups.com/how-i-found-a-high-severity-directory-traversal-in-flask-admin-10887|How I Found a High-Severity Directory Traversal in Flask-Admin]]
- [[raw/labs.watchtowr.com/smartertools-smartermail-pre-auth-rce-cve-2025-52691-4257|SmarterTools SmarterMail Pre-Auth RCE (CVE-2025-52691)]]
- [[raw/aikido.dev/yet-another-rce-in-gogs-but-it-s-fixed-this-time-11555|Yet another RCE in Gogs, but it's fixed this time!]]
- [[raw/wiz.io/gogs-zero-day-rce-cve-2025-8110-actively-exploited-3552|Gogs Zero-Day RCE (CVE-2025-8110) Actively Exploited]]
- [[raw/imperva.com/copyescape-container-to-host-arbitrary-file-write-via-docker-cp-cve-20-11286|CopyEscape: Container-to-host arbitrary file write via docker cp (CVE-2026-17106)]]
- [[raw/wiz.io/probllama-ollama-remote-code-execution-vulnerability-cve-2024-37032-ov-9625|Probllama: Ollama Remote Code Execution Vulnerability (CVE-2024-37032) – Overview and Mitigations]]
- [[raw/ethiack.com/write-once-shell-everywhere-turning-arbitrary-file-writes-into-rce-def-11195|Write Once, Shell Everywhere - Turning Arbitrary File Writes into RCE (DEF CON Bug Bounty Village)]]
- [[raw/bishopfox.com/one-port-to-root-weaponizing-check-point-management-cve-2026-93616-12179|One Port to Root: Weaponizing Check Point Management CVE-2026-93616]]
- [[raw/blog.sentry.security/beyond-prompt-injection-hacking-apple-s-private-cloud-compute-11210|Beyond Prompt Injection: Hacking Apple's Private Cloud Compute]]
- [[raw/samcurry.net/hacking-two-automakers-forgerock-path-confusion-rce-and-remote-vehicle-13612|Hacking Two Automakers: ForgeRock Path Confusion, RCE, and Remote Vehicle Access]]
- [[raw/rafa.hashnode.dev/research-exploiting-http-parsers-inconsistencies-990|(Research) Exploiting HTTP Parsers Inconsistencies]]
- [[raw/portswigger.net/top-10-web-hacking-techniques-of-2025-call-for-nominations-4820|Top 10 Web Hacking Techniques of 2025: Call for Nominations]]
- [[raw/horizon3.ai/cve-2026-106173-deep-dive-fortinet-fortisiem-grpc-path-traversal-file-12311|CVE-2026-106173 Deep-Dive: Fortinet FortiSIEM gRPC Path Traversal File Write to RCE]]
- [[raw/snyk.io/symlinks-are-still-scary-and-yes-you-can-commit-them-to-git-10268|Symlinks Are Still Scary (And Yes, You Can Commit Them to Git)]]
- [[raw/github.com/tinacms-graphql-symlink-path-traversal-14898|@tinacms/graphql symlink path traversal]]
- [[raw/melv.in/worse-finder-every-app-container-on-ios-one-symlink-away-15753|worse_finder: every app container on iOS, one symlink away]]
- [[raw/medium.com/grafana-cve-2025-4123-full-read-ssrf-account-takeover-3235|Grafana CVE-2025–4123: Full Read SSRF & Account Takeover]]
- [[raw/opswat.com/grafana-cve-2025-6023-full-account-takeover-4097|Grafana CVE-2025-6023: Full Account Takeover]]
- [[raw/portswigger.net/top-10-web-hacking-techniques-of-2022-portswigger-research-991|Top 10 web hacking techniques of 2022 - PortSwigger Research]]
- [[raw/getdisclosed.com/disclosed-4-3m-paid-in-hackerone-lhes-portswigger-top-10-released-2999|Disclosed: $4.3m Paid in HackerOne LHEs, PortSwigger Top 10 Released]]
- [[raw/infosecwriteups.com/escalating-a-blind-upload-to-rce-via-path-traversal-into-cron-and-dns-11369|Escalating a Blind Upload to RCE via Path Traversal into Cron and DNS-Restricted Callback Bypass]]
- [[raw/nahamsec.com/top-vulnerabilities-for-pentest-bug-bounty-in-2025-4269|Top Vulnerabilities for Pentest & Bug Bounty in 2025]]
- [[raw/mobeta.fr/vcenter-pre-auth-rce-cve-2026-59309-59310-12074|vCenter pre-auth RCE: CVE-2026-59309/59310]]
- [[raw/labs.watchtowr.com/why-use-app-level-auth-when-every-database-has-auth-splunk-enterprise-9116|Why Use App-Level Auth When Every Database Has Auth? (Splunk Enterprise CVE-2026-20253 Pre-Auth RCE) - watchTowr Labs]]
- [[raw/labs.watchtowr.com/it-s-37oc-and-all-we-can-think-about-is-coldfusion-adobe-coldfusion-se-10082|It’s 37oC, And All We Can Think About Is ColdFusion (Adobe ColdFusion Security Bulletin APSB26-68 CVE Bonanza) - watchTowr Labs]]
- [[raw/bishopfox.com/looting-unifi-controllers-detecting-and-weaponizing-cve-2026-22557-8563|Looting UniFi Controllers: Detecting and Weaponizing CVE-2026-22557]]
- [[raw/rhinosecuritylabs.com/multiple-vulnerabilities-in-frappe-lms-leading-to-remote-code-executio-12026|Multiple Vulnerabilities in Frappe LMS Leading to Remote Code Execution]]
- [[raw/github.com/cve-2026-27641-flask-reuploaded-path-traversal-enabling-ssti-rce-4979|CVE-2026-27641: Flask-Reuploaded Path Traversal Enabling SSTI RCE]]
- [[raw/github.com/wordpress-unauthenticated-path-traversal-leading-to-conditional-rce-12075|WordPress: Unauthenticated path traversal leading to conditional RCE]]
- [[raw/patchstack.com/critical-lfi-to-rce-in-wp-ghost-plugin-affecting-200k-sites-3488|Critical LFI to RCE in WP Ghost Plugin Affecting 200k+ Sites]]
- [[raw/rapid7.com/rapid7-analysis-cve-2022-28219-9358|Rapid7 Analysis: CVE-2022-28219]]
- [[raw/securityvulnerability.io/cve-2026-127209-path-traversal-in-xiaomi-mi-browser-app-14595|CVE-2026-127209: path traversal in Xiaomi Mi Browser app]]
- [[raw/medium.com/giving-an-ai-agent-a-file-reader-without-a-fence-arbitrary-file-read-i-12509|Giving an AI Agent a File Reader Without a Fence: Arbitrary File Read in an AWS Open-Source Tool]]
- [[raw/entryzero.ai/top-5-hacker-relevant-vulnerabilities-week-44-2026-13263|Top 5 hacker-relevant vulnerabilities (week 44 2026)]]
- [[raw/invicti.com/jwt-signature-bypass-via-kid-path-traversal-4111|JWT Signature Bypass via kid Path Traversal]]
- [[raw/medium.com/python-secure-coding-guidelines-2857|Python Secure Coding Guidelines]]
- [[raw/aikido.dev/python-security-vulnerabilities-top-issues-aikido-2859|Python Security Vulnerabilities - Top Issues - Aikido]]
- [[raw/blog.silentsignal.eu/ibm-db2-mirror-for-i-pre-auth-rce-and-the-road-to-qsecofr-12019|IBM Db2 Mirror for i: pre-auth RCE and the road to QSECOFR]]
- [[raw/github.com/yeswehack-vulnerable-code-snippets-twitter-vulnerable-snippets-1498|GitHub - yeswehack/vulnerable-code-snippets: Twitter vulnerable snippets]]
- [[raw/acceis.fr/ffuf-advanced-tricks-acceis-6123|ffuf advanced tricks - ACCEIS]]
- [[raw/cloudsek.com/how-an-unauthenticated-mcp-server-led-to-ssrf-lfi-and-aws-credential-t-8426|How an Unauthenticated MCP Server Led to SSRF, LFI, and AWS Credential Theft - CloudSEK]]