Prompt Details
Model
(claude-4-7-opus)
Token size
512
Example input
[TARGET_SYSTEM]: B2B E-Commerce Platform - Login API
[VULNERABILITY_FOUND]: Time-Based Blind SQL Injection
[EXPLOIT_METHOD]: Intercepted the POST login request and injected a SLEEP(10) payload into the username JSON field.
[BUSINESS_IMPACT]: Proved that an attacker can extract the entire database, including customer PII and hashed passwords.
Example output
# Vulnerability Assessment Report
## PHASE 1: EXECUTIVE SUMMARY & RISK RATING
**Vulnerability Title:** Time-Based Blind SQL Injection
**Estimated CVSS v3.1 Score:** 8.6 (High) - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
**Executive Summary:** During the assessment of the B2B E-Commerce Platform, a critical security flaw was identified in the login mechanism. An attacker can manipulate the data sent to the server to extract sensitive information directly from the database without requiring valid credentials. If exploited by a malicious actor, this flaw allows for the complete extraction of the underlying database, exposing sensitive Customer Personally Identifiable Information (PII), including emails, home addresses, and hashed passwords, leading to severe reputational damage and regulatory fines.
## PHASE 2: VULNERABILITY DETAILS & TECHNICAL CONTEXT
**Affected Asset:** `https://api.example-b2b.com/v1/auth/login`
**Vulnerable Parameter:** `username` (POST body)
**Technical Context:** The vulnerability exists due to a lack of input sanitization and parameterized queries in the backend authentication logic. The application concatenates user-supplied input directly into the SQL statement. Because the application does not reflect database errors to the frontend, the vulnerability must be exploited blindly using a time-delay technique (e.g., `pg_sleep()`), allowing an attacker to infer data character by character based on the server's response time.
## PHASE 3: PROOF OF CONCEPT (STEPS TO REPRODUCE)
To reproduce this finding, follow these steps:
1. Navigate to the login portal and intercept the authentication request using an interception proxy (e.g., Burp Suite).
2. Modify the JSON payload in the POST request body.
3. Inject the following PostgreSQL time-delay payload into the `username` field:
`"username": "admin' AND (SELECT 1337 FROM (SELECT(SLEEP(10)))x) AND 'abc'='abc"`
4. Forward the request.
5. Observe that the server takes exactly 10 seconds longer to respond than a baseline request, confirming that the SQL command was executed by the database engine.
## PHASE 4: REMEDIATION STRATEGY
**Short-Term Mitigation:** Deploy a strict Web Application Firewall (WAF) rule to block incoming requests containing common SQL injection payloads (e.g., `SLEEP()`, `WAITFOR DELAY`, `UNION SELECT`) on the `/auth/login` endpoint.
**Long-Term Remediation:**
The application must be refactored to entirely remove the use of dynamic string concatenation for SQL queries. Implement **Parameterized Queries (Prepared Statements)** or use a trusted Object-Relational Mapper (ORM) for all database interactions.
*Example of vulnerable implementation:*
`query = "SELECT * FROM users WHERE username = '" + username + "'"`
*Example of secure implementation (Node.js / pg):*
`const query = 'SELECT * FROM users WHERE username = $1'`
`const values = [username]`
`client.query(query, values)`
By purchasing this prompt, you agree to our terms of service
CLAUDE-4-7-OPUS
Stop wasting hours writing vulnerability reports. This prompt acts as a Principal Security Consultant, transforming your raw hacking notes and exploit logs into executive-ready Penetration Testing reports. It translates technical findings into business risk, calculates estimated CVSS scores, details exact reproduction steps for developers, and provides actionable remediation code. Designed for Ethical Hackers, Red Teams, and AppSec engineers to drastically speed up reporting.
...more
Added 1 week ago
