
문제 풀이app.pycurl 문제이다. curl을 이용하여 SSRF 공격에 성공하면 된다.ALLOWED_HOSTS = ['dreamhack.io', 'tools.dreamhack.io']@app.route("/api/v1/test/curl", methods=["POST"])def admin(): url = request.form["url"].strip() for host in ALLOWED_HOSTS: if url.startswith('http://' + host): break return {'result': False, 'msg': 'Not Allowed host'} if url.endswith('/test/internal'): ..