{'context_id': 430, 'vulnerable': True, 'processing': False, 'request': {'url': 'http://owens.com/app/tags/wp-contenthomepage.htm', 'method': 'DELETE', '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', 'REFERER': 'http://127.0.0.1:5000/sql-injection/search?q=', 'COOKIE': 'csrftoken=7GgBqVlBL6WuGdfu3e6EBXep8N5vFiVm; grafana_session=54c841e9cb2f4956a7c791efd284d120; grafana_session_expiry=1735995560; user_id=2; session_token=b3c634c91e1711c794704a031918a34b', 'UPGRADE_INSECURE_REQUESTS': '1', 'SEC_FETCH_DEST': 'document', 'SEC_FETCH_MODE': 'navigate', 'SEC_FETCH_SITE': 'same-origin', 'SEC_FETCH_USER': '?1', 'PRIORITY': 'u=0, i', 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0 (Windows 98; Win 9x 4.90; wa-BE; rv:1.9.0.20) Gecko/2446-08-25 17:30:50.432650 Firefox/3.8'}, 'body': b'csrfmiddlewaretoken=9139a63a-e2fc-44d1-b03c-b43aa27f3dcf&newpass1=umH724l0&newpass2=BJYKE3nI'}, '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 sql_injection_search_page(request, app)', 5: "search = request.args.get('q')", 6: 'sql = f"SELECT * FROM products WHERE name LIKE \'%{search}%\'"', 7: 'db_result = app.db_helper.execute_read(sql)', 8: 'con = None', 9: 'try:', 10: 'con = self._get_db_connection()', 11: 'return sqlite3.connect(self.DB_FILE_PATH)', 12: 'cur = con.cursor()', 13: 'cur.execute(sql, params)', 14: 'result = cur.fetchall()', 15: 'return result', 16: 'if con is not None:', 17: 'con.close()', 18: 'return result', 19: 'products = list(', 20: 'map(', 21: 'lambda p: {', 22: 'db_result', 23: 'map(', 24: 'products = list(', 25: 'return render_template(', 26: "'sql_injection/search.html',", 27: 'sql=sql,', 28: 'products=products', 29: 'return render_template(', 30: '', 31: '<div class="block">', 32: '<pre>', 33: '</pre>', 34: '', 35: '<div class="block">', 36: '<form action="/sql-injection/search" method="get" style="max-width: 300px;">', 37: '<div class="block">', 38: '<form action="/sql-injection/search" method="get" style="max-width: 300px;">', 39: '<div class="block">', 40: '<div class="field">', 41: '<meta name="viewport" content="width=device-width, initial-scale=1.0">', 42: '<link rel="stylesheet" href="{{ url_for(\'static\', filename=\'assets/bulma.min.css\') }}">', 43: '<title>Vuln Python App</title>', 44: '<body>', 45: '{% include "./components/navbar.html" %}', 46: '<section class="section">', 47: '{% block content %}{% endblock %}', 48: '</div>', 49: '</section>', 50: '', 51: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 52: '', 53: '<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="False" data-target="navbarBasicExample">', 54: '<span aria-hidden="True"></span>', 55: '<span aria-hidden="True"></span>', 56: '</div> -->', 57: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 58: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 59: '', 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 id="navbarBasicExample" class="navbar-menu">', 63: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 64: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 65: '<div class="navbar-start">', 66: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 67: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 68: '<a class="navbar-item" href="{{ url_for(\'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: 'Home', 72: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 73: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 74: '</a>', 75: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 76: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 77: '', 78: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 79: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 80: '<div class="navbar-item has-dropdown is-hoverable">', 81: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 82: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 83: '<a class="navbar-link">', 84: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 85: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 86: 'SQL Injection', 87: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 88: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 89: '</a>', 90: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 91: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 92: '', 93: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 94: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 95: '<div class="navbar-dropdown">', 96: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 97: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 98: '<a class="navbar-item" href="{{ url_for(\'sql_injection_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: 'Login', 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>', 105: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 106: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 107: '<a class="navbar-item" href="{{ url_for(\'sql_injection_search\') }}?q=">', 108: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 109: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 110: 'Search', 111: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 112: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 113: '</a>', 114: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 115: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 116: '</div>', 117: '<script src="{{ url_for(\'static\', filename=\'assets/global.js\') }}"></script>', 118: '<script src="{{ url_for(\'static\', filename=\'assets/axios.min.js\') }}"></script>', 119: '<script>', 120: "// var googleCaptchaKey = '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI';", 121: '<input class="input" name="q" type="text" placeholder="product...">', 122: '</div>', 123: '</div>', 124: '<div class="field is-grouped">', 125: '<div class="control">', 126: '<button class="button is-link">Search</button>', 127: '</div>', 128: '</form>', 129: '</div>', 130: '', 131: '<tbody>', 132: '{% for product in products %}', 133: "// var googleCatpchaSecretKey = '6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe';", 134: '', 135: "var googleCaptchaKey = '{{ GOOGLE_RECAPTCHA_SITE_KEY }}';", 136: "var googleCatpchaSecretKey = '{{ GOOGLE_RECAPTCHA_SECRET_KEY }}';", 137: '', 138: '</script>', 139: '', 140: '{% block js %}{% endblock %}', 141: '</body>', 142: '</html>', 143: 'None', 144: 'None', 145: 'None', 146: 'None', 147: 'None', 148: '</html>'}, 'response': {'status_code': '502', 'headers': {'Content-Type': 'text/html; charset=utf-8', 'Content-Length': '4027'}}}