seth
Supply

Supply

July 31, 2026
0
2 min

← US Cyber Open Season VI Writeups

image.png

We’re given a site and source code. Interestingly that source code has dependencies written by the challenge author as well.

image.png

The bottom two aren’t online on github, but the first one is.

image.png

And mux has a dependency to another package also written by the author, interesting. I decided to download that one as well to make sure I can see all the custom code.

image.png

Wow, it has yet another dependency by the author. This one has two go files linked.

image.png

diag.go has a very interesting function which parses the X-Forwarded-Context header on requests:

image.png

Looks like we just need base64(0xdeadbeef + <filepath>) as the header value to get an arbitrary file read. Maybe we can literally just do X-Forwarded-Context: b64(0xdeadbeef+'/flag.txt') then:

image.png

Flag: SVIUSCG{4cf633164913a50c191142efa65dac01}