PatriotCTF shortWU
Web giraffe notes The code ban HTTP-X-Forwarded-For header, but we can use X-Forwarded-Host header to bypass it. Impersonate First, I get server_start_time by get the respone from /status page. Then, I use flask-unsign to generate a cookie with is_admin set to True and username set to administrator. Then, I send a request to the admin page with this cookie to get the flag. Code exploit: import os, requests from datetime import datetime, timedelta import hashlib import subprocess res = requests....