Tech Challenge
2026-11-01
🔐
Daily Tech Challenge
Cybersecurity
medium
Question 1 of 5
An admin-only metrics endpoint is meant to be reachable only from the office NAT IP (203.0.113.10). The Flask app is deployed directly on the public internet, with no trusted reverse proxy in front of it, and enforces the restriction with the code below. How can an attacker on the public internet reach /admin/metrics?
Example
@app.route("/admin/metrics")
def metrics():
xff = request.headers.get("X-Forwarded-For", "")
client_ip = xff.split(",")[0].strip()
if client_ip != "203.0.113.10": # office NAT IP
abort(403)
return render_metrics()Sunday, November 1, 2026 · A new challenge drops every day