Skip to main content
Glama
flaviofilipe

kali-security-bridge

by flaviofilipe

testar_upload_arquivo

Detect unrestricted file upload vulnerabilities (CWE-434) by sending a harmless PHP proof-of-concept file and checking if it executes on the target server.

Instructions

Verifica vulnerabilidade de upload irrestrito de arquivos (CWE-434). Envia um arquivo PHP de prova-de-conceito inócuo e verifica se é executável.

ATENÇÃO: Cria um arquivo PHP sem comandos destrutivos no servidor de teste. Use somente em ambientes autorizados.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
field_nameNoNome do campo <input type="file"> no formulário. Padrão: "file"file
upload_urlYesURL do endpoint de upload. Ex: "http://192.168.1.10/wp-content/plugins/vuln-plugin/upload.php"
upload_path_hintNoCaminho base onde o servidor salva uploads. Ex: "/wp-content/uploads/", "/uploads/", "/files/"/wp-content/uploads/

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It transparently discloses that the tool creates a PHP file on the target server, notes that it is innocuous and non-destructive, and explicitly warns about authorization. This goes beyond the minimal requirement and adds context about the tool's side effects, though it does not detail response handling (covered by output schema).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and front-loaded: the purpose is stated in the first sentence, the method in the second, and a crucial warning appended. No fluff or redundant information. It is well-structured for quick comprehension.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers the essential context: vulnerability identification, method, authorization requirement, and safety of the proof-of-concept. While it does not explain the output format, an output schema exists, and the description is complete for an agent to understand when and how to invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage for all three parameters, each with clear descriptions and examples. The tool description adds no additional parameter semantics beyond the schema, so the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: verifying unrestricted file upload vulnerability (CWE-434), and specifies the method (sends an innocuous PHP proof-of-concept file and checks executability). It distinguishes from sibling security scan tools by naming the specific vulnerability type and technique.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides an explicit caution to use only in authorized environments, which is a key usage guideline. It implies the tool is for security testing of file upload endpoints, but does not explicitly mention alternatives or when not to use it. This is clear enough given the specialized nature.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/flaviofilipe/kali-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server