Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from Crypto.PublicKey import RSA
import argparse
import sys
import argparse


from flask import Flask, request, make_response, render_template_string
Expand Down Expand Up @@ -296,8 +297,8 @@ def create_token_hs256(key, keyid, exp_window=3600, audience='theia-web-shell',
app = Flask(__name__)

# Main index
@app.route('/')
def index():
@app.route('/hello', methods = ['GET'])
def hello():
return """
<html>
<head><title>Vulnerable Flask App: """ + CONFIG['app_name'] +"""</title></head>
Expand Down