phpliteadmin 1.9.3 Remote PHP Code Injection Vulnerability

phpliteadmin 1.9.3 Remote PHP Uzaktan Kod Çalıştırma açığı bulunmuş olup, açık bulucunun, açığın bulunduğu yerler ve açığın kullanımı hakkındaki açıklamaları şu şekilde;


# Exploit Title: phpliteadmin <= 1.9.3 Remote PHP Code Injection Vulnerability # Google Dork: inurl:phpliteadmin.php (Default PW: admin) # Date: 01/10/2013 # Exploit Author: <a href="mailto:L@usch">L@usch</a> - <a href="http://la.usch.io">http://la.usch.io</a> - <a href="http://la.usch.io/files/exploits/phpliteadmin-1.9.3.txt">http://la.usch.io/files/exploits/phpliteadmin-1.9.3.txt</a> # Vendor Homepage: <a href="http://code.google.com/p/phpliteadmin/">http://code.google.com/p/phpliteadmin/</a> # Vendor Status: Informed # Software Link: <a href="http://phpliteadmin.googlecode.com/files/phpliteadmin_v1-9-3.zip">http://phpliteadmin.googlecode.com/files/phpliteadmin_v1-9-3.zip</a> # Version: 1.9.3 # Tested on: Windows and Linux

Description:

phpliteadmin.php#1784: 'Creating a New Database' => phpliteadmin.php#1785: 'When you create a new database, the name you entered will be appended with the appropriate file extension (.db, .db3, .sqlite, etc.) if you do not include it yourself. The database will be created in the directory you specified as the $directory variable.',

An Attacker can create a sqlite Database with a php extension and insert PHP Code as text fields. When done the Attacker can execute it simply by access the database file with the Webbrowser.

Proof of Concept:

1. We create a db named "hack.php". (Depending on Server configuration sometimes it will not work and the name for the db will be "hack.sqlite". Then simply try to rename the database / existing database to "hack.php".) The script will store the sqlite database in the same directory as phpliteadmin.php. Preview: <a href="http://goo.gl/B5n9O">http://goo.gl/B5n9O</a> Hex preview: <a href="http://goo.gl/lJ5iQ">http://goo.gl/lJ5iQ</a>

2. Now create a new table in this database and insert a text field with the default value: <?php phpinfo()?> Hex preview: <a href="http://goo.gl/v7USQ">http://goo.gl/v7USQ</a>

3. Now we run hack.php

Done!

Proof: <a href="http://goo.gl/ZqPVL">http://goo.gl/ZqPVL</a>

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir