Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Bug Bounty Find a WAP time capsule with active CGI & TRACE

For the beginners: example.com is a placeholder for the actual domain.

Hello there - small recon story from today.

So I was running my usual subdomain sweep on example.com and one of the results made me super curious - wap.example.com.
WAP? Really?
Like, the Nokia-era mobile web? Hmm. That seems off.

I pointed at http://wap.example.com (no HTTPS - more on that later) and then page served raw WML.
The kind of stuff we used before smartphones even existed.

Response headers showing legacy Apache/OpenSSL stack and WML content-type.

[Image: 8LoGosG.png]

Naturally, I wanted to see if anything else from the old days was still alive.
So I peaked at /cgi-bin/ and it did not disappoint.

I hit /cgi-bin/test-cgi and got a 200 OK.
The server returned the actual source code of the CGI test script.

The active test-cgi script literally warning you not to use it in production.
[Image: lFbptpU.png]

The best part?
Right here in the source, this line jumped out at me:
“WARNING: This script echoes the server environment variables and therefore leaks information — so NEVER use it in a live server environment!”
Someone clearly didn't read the manual. 😆

Just to be sure, I tried /cgi-bin/printenv, and yep, same deal.
It spits out environment variables and server info in plain text.

printenv endpoint confirming environment variable leakage
[Image: lFbptpU.png]

Then I checked the allowed HTTP methods, and there it was TRACE.
I tried it and the host echoed my custom header back. Classic misconfiguration (enabler for XST) right next to the CGI leaks.
Could be serious, but exploitation usually needs outdated clients/proxies or an XSS..

TRACE request echoing the injected header, confirms method is enabled.
[Image: e5tS5Cg.png]

At this point, the picture was pretty clear to me..
This wasn't some live production service. It's a literal digital fossil still running Apache 2.4.56 with OpenSSL 1.1.1k - EOL version.
My thoughts? Probably a completely forgotten legacy host, long outside their main Azure setup.

You can't make this stuff up. This is what's so great about bug bounty hunting, it's always exciting, because you literally never know what to expect.
This program does not pay out money, however - They do have a hall of fame, which is super cool, as I can add it to my CV, and I already found a low severity vulnerability same place back in May month.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by bl1ndm0nkApr 3, 2026 09:25 AM 2 170 Apr 3, 2026 09:25 AM
Last Post: asif2034
by 0xslattApr 15, 2023 05:18 PM 2 110 Apr 15, 2023 05:18 PM
Last Post: 0xslatt
by spirited_wolf™Aug 8, 2021 12:47 AM 11 1,087 Aug 8, 2021 12:47 AM
Last Post: savetree