반응형
[DREAMHACK 워게임] 웹해킹_simple_sqli 문제풀이
Security2023. 11. 24. 14:01[DREAMHACK 워게임] 웹해킹_simple_sqli 문제풀이

해당문제는 sql injection 유형이다. @app.route('/login', methods=['GET', 'POST']) def login(): if request.method == 'GET': return render_template('login.html') else: userid = request.form.get('userid') userpassword = request.form.get('userpassword') res = query_db(f'select * from users where userid="{userid}" and userpassword="{userpassword}"') if res: userid = res[0] if userid == 'admin': return f'hello ..

반응형
image