web-file-path
Skill155 starsChanged 12 days agoMITView on GitHub
文件上传/下载/导入导出/预览/路径穿越/任意读写/处理引擎专项。当出现头像附件上传、报表导出、文档导入、PDF/Office/图片预览、压缩包、在线解压时调用。
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ai-agentSkill
- binary-reSkill
- ck-routerSkill
- cloud-infraSkill
- mobile-appSkill
- source-auditSkill
- web-api-protocolSkill
- web-auth-accessSkill
- web-deser-xxeSkill
- web-injectionSkill
- web-logic-raceSkill
- web-reconSkill
- web-ssrf-renderSkill
- web-waf-bypassSkill
- web-xss-frontendSkill
The file
Files
web-file-path — 文件上传/下载/导入导出/预览/路径穿越/任意读写/处理引擎专项
何时调用
- 上传(头像/附件/证件)
- 下载/导出/预览
- 导入(Excel/CSV/XML)
- 压缩包/在线解压
- 图片/音视频处理
30 秒分诊
- 先试无鉴权上传/下载:能不能传、传到哪、文件名是否可控
- 上传:看扩展名/内容/MIME 校验层,先绕扩展名再绕内容
- 下载/预览:
file=/path=直拼则打绝对路径与编码穿越 - 解析类(Office/图片/压缩包)→ 处理引擎攻击
首枪顺序
- 只拦 .php → 传
.htaccessAddType +.jpg马;或<?短标签+动态函数 - 上传目录可执行 + 二次渲染 → 图片马/PDF+PHP polyglot
- 预览/下载接口吃 file=/path= →
/etc/passwd、配置/密钥文件绝对路径 - 路径穿越被拦 → URL 编码/双写/绝对路径/二次解码
- XML 导入 → XXE(UTF-16/BOM 绕 WAF)
- CSV 导出 → 公式注入(如平台收录)
- 压缩包 → Zip Slip 写 web 目录
- 备份/日志/SQLite 在 web 目录 → /backup/、/db/.db、.bak
- LFI + 日志包含(UA 投毒)→ RCE
知识库索引(按需开小块,禁通读)
| 文件 | 用途 | 大小 |
knowledge/file-handling-03-三、文件上传绕过技术.md | 上传绕过技术 | 0.6KB |
knowledge/file-handling-04-四、路径穿越与任意文件读写.md | 穿越与任意读写 | 0.6KB |
knowledge/file-handling-05-五、文件处理引擎攻击.md | ImageMagick/FFmpeg/Office/压缩包 | 0.6KB |
knowledge/path-traversal-lfi-test.md | LFI/穿越实战大全 | 0.5KB |
knowledge/file-upload-test.md | 真实 SRC 上传/分享/下载战术 | 13.3KB |
其余 8 个知识块(按标题搜,禁止通读):ls knowledge/;原始清单见 ../../../docs/MIGRATION.md。
相关
web-injection/web-ssrf-render/cloud-infra
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

