Exploit databaseDownload repository ZIP
GH-afd4c22847608beae575ba51d3246286
s3v3n-jg/cve-2026-76461
Sources for CVE-2026-76461
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files23
s3v3n-jg/cve-2026-76461Revision cb4fe485a04d
- easy/
- hard/
- medium/
- tests/
- .gitignore
- LICENSE
- README.md
- RELEASE_CHECKLIST.md
- advanced_app.py
- advanced_challenge_flow.md
- advanced_exploit.py
- app.py
- build-guide.md
- challenge_flow.md
- challenge_runner.py
- exploit.py
- hints.md
- patched_app.py
- requirements.txt
- reset_challenge.py
- scoreboard.py
- student-instructions.md
- writeup.md
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
patched_app.py
Python · 1,207 bytesimport os
from flask import Flask, jsonify, request
import yaml
app = Flask(__name__)
PORT = int(os.environ.get("PORT", "5000"))
FLAG = os.environ.get("FLAG", "FLAG{unsafe_yaml_deserialization_2026}")
@app.route("/", methods=["GET"])
def index():
return jsonify(
{
"service": "Config Import Service",
"status": "online",
"version": "2026.76461.patched",
"message": "Use a POST request to /api/import with a YAML config blob.",
}
)
@app.route("/api/import", methods=["POST"])
def import_config():
if not request.is_json:
return jsonify({"error": "JSON body required"}), 400
data = request.get_json(silent=True) or {}
if "config" not in data:
return jsonify({"error": "Missing 'config' field"}), 400
try:
loaded = yaml.safe_load(data["config"])
except Exception as exc: # pragma: no cover
return jsonify({"error": f"Invalid YAML: {exc}"}), 400
if loaded is None:
return jsonify({"status": "imported", "payload": None})
return jsonify({"status": "imported", "payload": loaded})
if __name__ == "__main__":
app.run(host="0.0.0.0", port=PORT, debug=False)