Wargame: Natas
Level: 0
Category: Web Security
Description
The password for natas1 is hidden in the HTML source of the page. No interaction is needed beyond viewing the page source.
Overview
- “View Source” (Ctrl+U) or developer tools reveals HTML comments.
- Passwords are often left in comments or hidden elements by developers during testing.
Solution
response = requests.get(url, auth=("natas0", current_password))
soup = BeautifulSoup(response.text, "html.parser")
result = soup.find(string=lambda s: "password" in s.lower())
Password
g9D9cREhslqBKtcA2uocGHPfMZVzeFK6