# Check for script and database injection

> User-written text is shown as HTML somewhere, or a query is built by gluing strings together.

Web page: https://buildladder.com/resources/prompts/injection

What you get: Every spot where user input becomes code, each one fixed and tested again with a harmless payload.

Paste it into: Your AI tool, in your project

## Prompt to copy

```text
Look for places where text from a user could be run as code in this project.

Search for: user content rendered as raw HTML, markdown rendered without sanitizing, links whose address comes from user input, database queries built by joining strings, and user input passed to a shell command, a file path or a redirect.

For each, show the file and line and a harmless test input that proves the problem. Fix it the standard way for this stack: escape or sanitize on output, use parameterized queries, and check redirects and paths against an allowed list. Run the same test input again and show that it's now treated as plain text. Test on a local setup only. If you find nothing, say so instead of inventing findings.
```
