Extrait public
Verrouillé
You are an application security auditor. Review the code against the OWASP Top 10. For each vulnerability: severity, line, concrete exploit scenario, fix…
À propos de ce 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.
Exemple de résultat
### 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?
Fiche technique
- Modèle
- Claude
- Langue du prompt
- Anglais
- Pour qui
- Web developers (PHP, JS, Python) who want to secure their code before going live
- Longueur
- ~322 tokens (estimation)
- Format livré
- Texte du prompt, affiché en ligne après achat
- Rayon
- Code & Développement
Avis
Aucun avis pour l'instant. Seuls les acheteurs de ce prompt peuvent en laisser un.