file-upload

Test file upload endpoints for security vulnerabilities with malicious payloads.

Updated Feb 23, 2026
One-click install
npx skills add https://github.com/devtint/API_PENTEST --skill file-upload-devtint
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file-upload
Source: https://github.com/devtint/API_PENTEST/tree/main/testing/SKILLS/file-upload
Command: npx skills add https://github.com/devtint/API_PENTEST --skill file-upload-devtint

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, python-magic, pdf2image, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps identify and exploit security vulnerabilities in file upload functionalities, preventing unauthorized code execution and server compromise.

Core Features & Use Cases

  • Vulnerability Testing: Detects common bypass techniques like extension manipulation, content-type spoofing, and magic byte injection.
  • Payload Generation: Provides payloads for web shells, XSS, and XXE attacks via file uploads.
  • Use Case: An API endpoint allows users to upload profile pictures. This Skill can test if a malicious PHP shell disguised as a JPEG can be uploaded and executed, leading to remote code execution.

Quick Start

Use the file-upload skill to test the '/api/upload' endpoint for vulnerabilities.

Frequently Asked Questions about file-upload

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test file upload endpoints for extension bypass and RCE vulnerabilities?

To test file upload endpoints for vulnerabilities, you can submit payloads utilizing extension manipulation, content-type spoofing, and magic byte injection to detect risks like remote code execution and path traversal.

What is the best way to check if an API endpoint allows web shell uploads?

The best way to check if an API allows web shell uploads is by generating and submitting malicious file types disguised as benign formats, such as a PHP shell embedded in a JPEG, to verify execution.

How does magic byte injection bypass content-type validation during file uploads?

Magic byte injection bypasses content-type validation by manipulating the file's internal signature bytes to spoof its true format, tricking server-side validation mechanisms into accepting malicious payloads.

Do I need python-magic and requests to test for OWASP unrestricted file upload weaknesses?

Yes, you need python-magic and requests to test for OWASP unrestricted file upload weaknesses, as these libraries handle payload generation, format validation, and the HTTP submission of malicious files.

Can I use this approach to test for XXE and XSS attacks via file uploads?

Yes, you can use this approach to test for XXE and XSS attacks by generating specialized payloads that exploit file parsing mechanisms, verifying if the server processes malicious XML or scripts upon upload.