Security-focused code review (OWASP Top 10)

by fidji Claude English ~322 tokens
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

Provided by the author
### 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

Reviews

Buyers only

No reviews yet. Only buyers of this prompt can leave one.

Report this prompt