[Dreamhack Wargame] File Vulnerability Advanced for linux
문제 분석 def key_required(view): @wraps(view) def wrapped_view(**kwargs): apikey = request.args.get('API_KEY', None) if API_KEY and apikey: if apikey == API_KEY: return view(**kwargs) return 'Access Denined !' return wrapped_view @app.route('/admin', methods=['GET']) @key_required def admin(): cmd = request.args.get('cmd', None) if cmd: result = subprocess.getoutput(cmd) return result else: return ..