Access Control
File path traversal, simple case
Change last parameter path of https://0a4100de0481f1a8815553d000b50008.web-security-academy.net/image?filename=36.jpg
to ../../../etc/passwd
Unprotected admin functionality
- Open
robots.txt
- See
Disallow: /administrator-panel
- Navigate to that route
- Delete carlos user
Unprotected admin functionality with unpredictable URL
- Find this script in the source code:
var isAdmin = false; if (isAdmin) { var topLinksTag = document.getElementsByClassName("top-links")[0]; var adminPanelTag = document.createElement('a'); adminPanelTag.setAttribute('href', '/admin-jquaos'); adminPanelTag.innerText = 'Admin panel'; topLinksTag.append(adminPanelTag); var pTag = document.createElement('p'); pTag.innerText = '|'; topLinksTag.appendChild(pTag); }
- Navigate to
/admin-jquaos
User role controlled by request parameter
- Login as
wiener:peter
- Set the
Admin
cookie totrue
- Navigate to
/admin