Hunting Path Traversal And File Access

Hunt path traversal and unsafe file access where untrusted input builds a filesystem path and the resolved path escapes the intended base directory, so the process reads or writes files it should not. Covers download and upload names, template and include paths, static-file routes, and archive members driven to dot-dot or absolute or drive-letter targets, encoded and double-encoded separators, null-byte truncation on legacy stacks, symlink following, and the difference between checking the raw input and checking the canonicalized absolute path. Use when input becomes a path passed to an open, read, write, include, or send-file call. The untrusted path input is the source, the filesystem open or write is the sink, and reaching a file outside the intended directory is the bug.

UnboundCompute Updated

File contents

UnboundCompute/security-agent-skills/tree/main/skills/hunting-path-traversal-and-file-access commit ef8190f8f9

Frequently asked questions

npx skillmds@latest add unboundcompute/hunting-path-traversal-and-file-access