FIX CARD
PRODUCT Gradio
SEVERITY HIGH
Gradio app exposed to the internet
Why it matters
Your ML demo is public. Anyone can use it (you pay for compute), poke at its inputs, and if the app accepts file uploads or runs shell-adjacent code, probe it for escapes. Demos have a way of quietly becoming production.
Fix it: 3 steps
- If it was a demo, take it down or stop sharing: launch with
share=Falseand bind locally (server_name="127.0.0.1"). - If it must be public, add auth:
demo.launch(auth=("user", "strong-password"))or an authenticating reverse proxy, and setshow_error=Falsein production so tracebacks do not leak internals. - Block the port until then:
sudo ufw deny 7860.
Verify it’s fixed
curl -m 5 http://YOUR_SERVER_IP:7860/config # should be unreachable or behind auth
References
Not sure if your stack is exposed?
Run the free check: usually under a minute, safe read-only probes.
Scan your stack