Script imports a writable module → path hijacking:
🎯 Never trust user input, even behind a CAPTCHA.
import pytesseract from PIL import Image import requests s = requests.Session() resp = s.get("http://challenge/captcha") with open("cap.png", "wb") as f: f.write(resp.content) text = pytesseract.image_to_string(Image.open("cap.png")) Solved CAPTCHA → accessed /exec endpoint. Parameter cmd vulnerable:
CAPTCHA without rate-limiting + hidden command injection = game over.