Public excerpt
Locked
You are an application security auditor. Review the code against the OWASP Top 10. For each vulnerability: severity, line, concrete exploit scenario, fix…
About this prompt
Puts your code through a structured security review: injection, XSS, CSRF, access control, secrets, error handling. Each issue is ranked by severity with the exact line and a ready-to-apply fix.
Example output
### 1. SQL injection — Critical
Location: getUser(), line 14
Scenario: an attacker passes `1 OR 1=1` in ?id= and dumps the whole users table.
Fix:
```php
$stmt = $pdo->prepare('SELECT * FROM users WHERE id = ?');
$stmt->execute([(int) $_GET['id']]);
```
| Severity | Issue | Line |
| Critical | SQL injection | 14 |
| Medium | No CSRF token on /delete | 42 |
To verify: does the authentication middleware (not provided) protect /admin?
Details
- Model
- Claude
- Prompt language
- English
- Who it's for
- Web developers (PHP, JS, Python) who want to secure their code before going live
- Length
- ~322 tokens (estimate)
- Delivered as
- Prompt text, shown online after purchase
- Category
- Code & Development
Reviews
No reviews yet. Only buyers of this prompt can leave one.