caodchuong312 / lfi-to-rce-via-log

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

run

git clone https://github.com/caodchuong312/lfi-to-rce-via-log.git
cd lfi-to-rce-via-log/
sudo docker-compose up

=> access: http://localhost:1337

exploit

image

access.log/error.log

image

image

như vậy ../ bị replace, bypass: ....//.

image

test file access.log:

image

inject <?php system('id'); ?> vào User-Agent:

image

kết quả:

image

giờ tìm và đọc flag:

image

image

image

image

tương tự với error.log

sessions file

image

image

kiểm tra và truy cập file session:

image

image

exploit

image

image

check file session:

image

oke

About


Languages

Language:Dockerfile 47.4%Language:PHP 46.9%Language:Shell 5.7%