SecBlog

A Simple b(log) of interesting things

Natas Level 7

A Simple exercise in Path Traversal Vulnerability

Quest

We are presented with a simple web page, with two links “Home” and “About”.

Level 7 Image

When we look at the page source, we see that password for next level is stored in /etc/natas_webpass/natas8 file.

Level 7.1 Image



Solution

Look at the urls:
  Home : http://natas7.natas.labs.overthewire.org/index.php?page=home
  About : http://natas7.natas.labs.overthewire.org/index.php?page=about

We’ll check if query parameter page is vulnerable to Path Traversal (also called Directory Traversal) attack.

  Our payload : page=/etc/natas_webpass/natas8

Level 7 Solution

As we can see above, our attack worked, the page is vulnerable to Directory traversal attack.

Tip! - Try using any other file like /etc/passwd.


« Back