16 lines
308 B
Python
16 lines
308 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
"""Bad authentication"""
|
|
|
|
from flask import Flask, jsonify
|
|
|
|
app: Flask = Flask(__name__)
|
|
|
|
|
|
@app.route("/data")
|
|
def data():
|
|
return jsonify({"credit_card": "1234-5678-9012-3456"}) # Sensitive data exposed
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app.run(debug=True)
|