🏝️Web - Server
Note : A JOURNEY TO GAIN KNOWLEDGE
Web - Server
1.HTML - Source code
F12 for flag
2.HTTP - IP restriction bypass

Syntax: X-Forwarded-For: <client>,<proxy1>,<proxy2>,<proxy3>
Change IP at client to private IP by adding an X-Forwarded-For header

3.HTTP - Open redirect

It combines URL and hash md5 of that one, so that we just put other URL and hash of it.

4.HTTP - User-agent
change User-Agent to `admin`

5.Weak password

6.PHP - Command injection


7.Backup file
Use dirsearch find some interesting files:

/web-serveur/ch11/index.php~
8.HTTP - Directory indexing
http://challenge01.root-me.org/web-serveur/ch4/admin/backup/admin.txt

9.HTTP - Headers
With normal request we will get:

add Header to request:
Header-RootMe-Admin: True

10.HTTP - POST

11.HTTP - Improper redirect
Capture before it redirect

12.HTTP - Verb tampering
Ban đầu tưởng bruteforce ngồi xài hydra và cái rockyou.txt ra spam cả tiếng

temper ở đây là chỉ cần đổi method khác ngoài GET và POST là được, cứ PUT với DELETE mà phang

13.File upload - Double extensions
set file.php.png and send to the server

14.File upload - MIME type

Change Content-Type to image/png and rce
15.HTTP - Cookies

change cookie from visiteur to admin
16.JSON Web Token (JWT) - Introduction

"none" signature algorithms
17.Directory traversal

Try with ../ and fuzz
18.JSON Web Token (JWT) - Weak secret

bruteforce secret key: lol

POST and look for the flag hm....

19.File upload - Null byte
create: file.php%0a.png


20.Install files
use dirsearch: /web-serveur/ch6/phpbb/install

21. JWT - Revoked token
source
Use python request to post data:
The problem that we have to bypass blacklist because with each access_token it will be added to blacklist:
with rfc3548 we can see that the character out of alphabet will be skipped



underscore “_” , then replace with “/”

add == in the end of jwt -> fast way to understand


22. CRLF
Input -> fuzz
Thử nhập bừa username và passoword ta thấy rõ log ghi lại username -> tấn công từ đây

Mục tiêu là có thể log lạiadminauthenticated.
gửi payload trên url và urlencode để server decode lại

23. Insecure Code Management

24.PHP - assert()
Detect lỗi File Inclusion -> LFI via PHP's 'assert
Khả nghi:
command:

Last updated
