{'context_id': 368, 'vulnerable': True, 'processing': False, 'request': {'url': 'https://www.hill.biz/mainprivacy.php', 'method': 'PATCH', 'headers': {'HOST': '127.0.0.1:5000', 'USER_AGENT': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0', 'ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'ACCEPT_ENCODING': 'gzip, deflate, br, zstd', 'CONNECTION': 'keep-alive', 'COOKIE': 'csrftoken=7GgBqVlBL6WuGdfu3e6EBXep8N5vFiVm; grafana_session=54c841e9cb2f4956a7c791efd284d120; grafana_session_expiry=1735995560', 'UPGRADE_INSECURE_REQUESTS': '1', 'SEC_FETCH_DEST': 'document', 'SEC_FETCH_MODE': 'navigate', 'SEC_FETCH_SITE': 'none', 'SEC_FETCH_USER': '?1', 'PRIORITY': 'u=0, i', 'Content-Type': 'application/json', 'User-Agent': 'Mozilla/5.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/3.0)'}, 'body': b'csrfmiddlewaretoken=e3c3ad31-7a42-4417-96db-15cb74b47d0b&newpass1=N4j4vwXX&newpass2=Wagb8rp2'}, 'control_flow': {0: "api_key = request.cookies.get('api_key')", 1: 'if API_KEY is None or api_key == API_KEY:', 2: 'return f(*args, **kwargs)', 3: 'pass', 4: "return render_template('home.html')", 5: '{% extends "base.html" %}', 6: '{% block content %}', 7: '', 8: '<h1 class="title">Welcome to Vulnerable Python/Flask WebApp</h1>', 9: 'if (urlParams.reset_db) {', 10: '{% endblock %}', 11: '{% endblock %}', 12: '{% endblock %}', 13: '', 14: '<p class="subtitle">', 15: 'This application contains some vulnerabilities hardcoded to be used as a PoC for SAST solutions.', 16: '</section>', 17: '', 18: '<!DOCTYPE html>', 19: '<html lang="en">', 20: '<head>', 21: '<meta http-equiv="X-UA-Compatible" content="IE=edge">', 22: '</html>', 23: '</html>', 24: '</html>', 25: '</html>', 26: '', 27: '{% block js %}', 28: '', 29: '{% block js %}', 30: '', 31: '', 32: '<meta name="viewport" content="width=device-width, initial-scale=1.0">', 33: '<link rel="stylesheet" href="{{ url_for(\'static\', filename=\'assets/bulma.min.css\') }}">', 34: '<title>Vuln Python App</title>', 35: '<body>', 36: '{% include "./components/navbar.html" %}', 37: '<section class="section">', 38: '{% block content %}{% endblock %}', 39: '</div>', 40: '</section>', 41: '', 42: '<nav class="navbar" role="navigation" aria-label="main navigation">', 43: '<!-- <div class="navbar-brand">', 44: '<a class="navbar-item" href="https://bulma.io">', 45: '</a>', 46: '', 47: '<div class="navbar-item has-dropdown is-hoverable">', 48: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 49: '', 50: '<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="False" data-target="navbarBasicExample">', 51: '<span aria-hidden="True"></span>', 52: '<span aria-hidden="True"></span>', 53: '</div> -->', 54: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 55: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 56: '', 57: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 58: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 59: '<div id="navbarBasicExample" class="navbar-menu">', 60: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 61: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 62: '<div class="navbar-start">', 63: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 64: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 65: '<a class="navbar-item" href="{{ url_for(\'home\') }}">', 66: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 67: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 68: 'Home', 69: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 70: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 71: '</a>', 72: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 73: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 74: '', 75: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 76: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 77: '<div class="navbar-item has-dropdown is-hoverable">', 78: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 79: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 80: '<a class="navbar-link">', 81: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 82: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 83: 'SQL Injection', 84: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 85: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 86: '</a>', 87: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 88: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 89: '', 90: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 91: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 92: '<div class="navbar-dropdown">', 93: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 94: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 95: '<a class="navbar-item" href="{{ url_for(\'sql_injection_login\') }}">', 96: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 97: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 98: 'Login', 99: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 100: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 101: '</a>', 102: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 103: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 104: '<a class="navbar-item" href="{{ url_for(\'sql_injection_search\') }}?q=">', 105: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 106: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 107: 'Search', 108: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 109: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 110: '</a>', 111: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 112: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 113: '</div>', 114: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 115: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 116: '<script>', 117: "// var googleCaptchaKey = '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI';", 118: "alert('Database has been reseted!')", 119: '}', 120: '</script>', 121: '{% endblock %}', 122: '{% endblock %}', 123: "// var googleCatpchaSecretKey = '6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe';", 124: '', 125: "var googleCaptchaKey = '{{ GOOGLE_RECAPTCHA_SITE_KEY }}';", 126: "var googleCatpchaSecretKey = '{{ GOOGLE_RECAPTCHA_SECRET_KEY }}';", 127: '', 128: '</script>', 129: '', 130: '{% block js %}{% endblock %}', 131: '</body>', 132: '</html>', 133: 'None', 134: 'None', 135: 'None', 136: 'None', 137: 'None', 138: '</html>'}, 'response': {'status_code': '502', 'headers': {'Content-Type': 'application/json', 'Content-Length': '3410'}}}