research-school-2024/examples/monitoring.py
Ari Archer 2dd94a9bc5
Implement a bunch of vulnerabile examples.
Signed-off-by: Ari Archer <ari@ari.lt>
2024-12-05 01:30:06 +02:00

18 lines
375 B
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Not enough logging"""
from flask import Flask, request
app: Flask = Flask(__name__)
@app.route("/action", methods=["POST"])
def action():
action_type: str = request.form["action"]
# No logging of actions performed
return f"Action {action_type} performed!"
if __name__ == "__main__":
app.run(debug=True)