|
| 1 | +from utils import App, Request |
| 2 | + |
| 3 | +spring_boot_postgres_app = App(8104) |
| 4 | + |
| 5 | +spring_boot_postgres_app.add_payload("sql", |
| 6 | + safe_request=Request("/api/pets/create", body={"name": "Bobby"}), |
| 7 | + unsafe_request=Request("/api/pets/create", body={"name": "Malicious Pet', 'Gru from the Minions') -- "}) |
| 8 | +) |
| 9 | +spring_boot_postgres_app.add_payload("command injection", |
| 10 | + safe_request=Request("/api/commands/execute/Johnny", method='GET'), |
| 11 | + unsafe_request=Request("/api/commands/execute/%27%3B%20sleep%202%3B%20%23%20", method='GET'), |
| 12 | +) |
| 13 | +spring_boot_postgres_app.add_payload("server-side request forgery", |
| 14 | + safe_request=Request("/api/requests/get", data_type='form', body={"url": "https://aikido.dev/"}), |
| 15 | + unsafe_request=Request("/api/requests/get", data_type='form', body={"url": "http://localhost:5000"}) |
| 16 | +) |
| 17 | +spring_boot_postgres_app.add_payload("path traversal", |
| 18 | + safe_request=Request("/api/files/read", data_type='form', body={"fileName": "README.md"}), |
| 19 | + unsafe_request=Request("/api/files/read", data_type='form', body={"fileName": "./../databases/docker-compose.yml"}) |
| 20 | +) |
| 21 | + |
| 22 | +spring_boot_postgres_app.test_all_payloads() |
0 commit comments