Lucene search
+L

PHP-Nuke 1.0/2.5 - Administrative Privileges

🗓️ 21 Aug 2000 00:00:00Reported by bruj0Type 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 25 Views

PHP-Nuke flaw allows privilege escalation from user to administrator due to authentication vulnerability.

Related
Code
ReporterTitlePublishedViews
Family
Tenable Nessus
PHP-Nuke Software Detection
20 Aug 200400:00
nessus
CVE
CVE-2000-0745
13 Oct 200004:00
cve
Cvelist
CVE-2000-0745
13 Oct 200004:00
cvelist
EUVD
EUVD-2000-0740
7 Oct 202500:30
euvd
NVD
CVE-2000-0745
20 Oct 200004:00
nvd
Packet Storm
RFP2101.txt
14 Feb 200100:00
packetstorm
securityvulns
RFP2101: RFPlutonium to fuel your PHP-Nuke
14 Feb 200100:00
securityvulns
source: https://www.securityfocus.com/bid/1592/info

PHP-Nuke is a website creation/maintainence tool written in PHP3. It is possible to elevate priviliges in this system from normal user to administrator due to a flaw in authentication code. The problem occurs here:

$aid = variable holding author name, pwd = author password

$result=mysql_query("select pwd from authors where aid='$aid'");
if(!$result) {
echo "Selection from database failed!";
exit;
} else {
list($pass)=mysql_fetch_row($result);

if($pass == $pwd) {
$admintest = 1;
}
}

First off, the code checks to make sure the query passed to mysql_query is legal. There are no checks to see whether any rows are returned (whether any authors match $aid..). Then, the password given is compared to the result of the above query. If the author doesn't match, mysql_fetch_row returns FALSE. This is where the problem occurs. A NULL string is logically equal to FALSE and thus if an empty string is supplied as password, the condition tested for above (the if($pass == $pwd)) is met and admintest is set to 1 (TRUE). The user is then able to perform all administrative functions.

http://target/admin.php3?admin=any_data

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Aug 2012 00:00Current
7.4High risk
Vulners AI Score7.4
CVSS 27.5
EPSS0.1207
25