November 26, 2026
Surfer | TryHackMe Walkthrough
‘Surfer’ is a easy-level premium room on TryhackMe where a seemingly simple application is hiding exploitable weaknesses.

By Yashika.
4 min read
The scenario:
Woah, check out this radical app! Isn't it narly dude? We've been surfing through some webpages and we want to get you on board too! They said this application has some functionality that is only available for internal usage — but if you catch the right wave, you can probably find the sweet stuff!
In this writeup, i'll walk through my approach to capturing the flag. The challenge turned out to be much simpler than I expected, and the reason it was so simple is a good lesson in how real-world systems get compromised. A weak authentication practice gave full access without any exploit.
Task — Uncover the flag on the hidden application page.
To begin, I headed to the provided url to see what the application exposed. This is the first step to any web assessment: understand what you're looking at before deciding how to approach it.
The url leads to a url for an application called 24X7 System+. Two things that stood out:
- The page was served over pplain HTTP. This means credentials travel unencrypted across the network
- The page was a .php login form which means the application was a custom-built PHP site.
With only a login form in front of me, the most sensible first test was default credentials. Many applications and devices ship with well-known username and password, such as admin:admin, admin:password, or root:root).
I tried admin:admin and the login succeeded immediately. I was redirected to the admin homepage as shown below. It dislayed a dashboard that looked like a generic admin panel with nothing exploitable.
The Recent Activity feed, however, is what moved the investigation forward. Activity logs like this often leak information that is not meant for public consumption- becasue they are built for internal visibility rather than security.
One entry stood out.
We should check it out.
I navigated to /internal/admin.php and ofcourse it was inaccessible.
This is a common server-side protection. The application checks the IP address making the request and only allows it through if that request originates from the server itself, rejecting anything coming from an external client, like my browser.
At this point, my goal shifted. I didn't need to bypass authentication again, I needed to find a way to make the server request the page on my behalf.
Scrolling further down the dashboard I found an 'Export to PDF' button. Clicking it generated a pdf report containing hosting details.
This is great.
This was the detail that mattered the most. The report explicitly namewd a url, http://127.0.0.1/server-info.php as its source. That meant the export feature wasn't generating a static document, it was fetching the content of a url and rendering it into a pdf.
I fired up Burp Suite to see what I could do with this.
With Burp Suite capturing traffic, I sent the export request to Burp's Repeater and inspected it. The POST request to /export2pdf.php contained a single parameter:
url=http%3A%2F%2F127.0.0.1%2Fserver-info.php
This confirmed what the pdf report suggested: the server takes a url supplied in the request, fetches it from the server's own perspective, and returns the content. This is a Server-Side Request Forgery (SSRF) vulnerability.
SSRF is important because it allows an outside attacker trick a server into making requests it was never meant to make. The /internal/admin.php had rejected my browser because it was not a local request. However, if I could get this feature to fetch /internal/admin.php, the request would be coming from the server itself, and from the page's point of view, that is a legitimate request.
i modified the url parameter to point to the restricted page itself.
I forwarded the modified request through Burp. The server fetched /internal/admin.php and returned the result inside the generated pdf.
Answer: flag{6255c55660e292cf0116c053c9937810}
Remediation
- Don't rely on source IP alone to authroize access. Pair it with proper authentication for anything sensitive, even on internal-only pages.
- Validate and restirct the url parameter on the export feature with an allow-list of permitted hosts/paths, rejecting requests to localhost, private IP ranges and internal-only paths.
- Isolate server-side fetch functionality from internal resources entirely so even a successful SSRF has nothing sensitive to reach.
- Log and monitor outbound requests made by server-side fetch features, since legitimate use rarely targets internal hosts.
Conclusion
This room is a great reminder that vulnerabilities rarely show up in isolation: they chain together. A weak default credential got me in the door, an overly chatty activity log told me exactly where to look, and a seemingly harmless "export to pdf" feature turned out to be a full SSRF vector that let me impersonate a trusted, local request. None of these issues were individually catastrophic, but stacked together they led to a complete compromise of the appplication's internal data.
Thanks for reading! I hope this writeup helped you out ❤