Webmedium
Secure Flag Hiding Application
by Pavel Knespl (capyplivl)
A single-page "Secure Flag Hider" claims it leaks nothing important. The flag is sitting in a static JavaScript file the page loads, as a plain comment. No auth, no API, no obfuscation.
Solve
- View the page source. The only dynamic resource is a script tag:
<script src="/static/secret.js"></script> - Start the instance, then fetch that script directly:
The flag is a comment in the served file:curl -s https://<target>/static/secret.js// SVIBGR{@lwAys_Ch3ck_Th3_S0urc3s}
Flag: SVIBGR{@lwAys_Ch3ck_Th3_S0urc3s}