target://path-traversal-vault
easyOPEN
Leaky Asset Vault
path-traversalfile-access
// Scenario
A static file helper read_public_asset(vfs, requested_path) / readPublicAsset(vfs, requestedPath) serves files from a virtual filesystem dictionary vfs rooted at /srv/vault/public.
// The Vulnerability
The function joins /srv/vault/public with requested_path without canonicalizing .., URL-encoded sequences (%2e%2e), null bytes, or verifying directory boundaries. Attackers can read /srv/vault/secrets/flag.txt or sibling prefix directories like /srv/vault/public-private/key.pem.
// Your Task
Resolve the target path canonically and ensure it strictly resides inside /srv/vault/public/ before looking it up in vfs.
- Return
None/nullif the path is invalid, attempts traversal, contains null bytes, or does not exist.
Sample Sanity Checks (1)
- Reads valid public assetReads css/app.css inside /srv/vault/public
Hints (0/3)
initializing editor...
[idle] Press RUN to execute visible sample checks, or SUBMIT to run hidden exploit & functionality suites.