Ferrari Website Flaw Exposes Their Database Credentials

Based on the recent report from char49, it appears that there was a critical flaw in Ferrari’s subdomain, which led to an arbitrary file read vulnerability.

The vulnerability existed in the media.ferrari.com subdomain using a vulnerable WordPress plugin (W3 Total Cache) that could allow threat actors to read sensitive files on the server.

The W3 Total Cache plugin is used by millions of WordPress websites, increasing website performance. However, Ferrari had an outdated version of this plugin which threat actors could’ve exploited.

Technical Analysis

Ferrari was running on WordPress CMS(Content Management System), discovered by Inspecting elements with the Developer Tools offered by some browsers.


Hence, initial reconnaissance started with WPScan which revealed some interesting information like installed plugins on the website. This enumeration showed the W3 Total Cache version as 0.9.3, which was outdated. The latest version of this plugin was found to be v2.3.1.

Further research by the research team and some Google Dorking led to the discovery of CVE-2019-6715, in which W3 Total Cache Versions before v0.9.4 were vulnerable to unauthenticated arbitrary file read vulnerability.

The wp-config.php file must be located on the server to exploit this vulnerability. The path to this file depends on the operating system and the HTTP server type used.

The operating system was found and confirmed as Ubuntu 14.04.5 LTS by reading the /etc/issue file.

cURL request to /etc/issue file
The response shows the operating system used

The HTTP server was guessed as Apache and was confirmed by sending the request to the /etc/apache2/apache.conf which loaded the Apache configuration file.

Now, the virtual-host configuration file must be found, which is consistently named by the site owners. After several guessing, the virtual-host configuration file was guessed to be media.ferrari.com which was located at /etc/apache2/sites-enabled/media.ferrari.com

For finding the DocumentRoot path that servers the WordPress files, a cURL request is sent to the virtual-host configuration file.

cURL request to /etc/apache2/sites-enabled/media.ferrari.com

The response to this request revealed the DocumentRoot path.

With this gathered information, the wp-config.php file location is found as /home/web/mediaferrari/wp-config.php, which contains the database details and keys.

This extracted sensitive data, including DB name, DB password, DB host and other information.

DB details are revealed through unauthenticated arbitrary file read

This was reported to Ferrari through Ferrari’s Responsible Disclosure Program. Ferrari’s security team immediately acted upon this and fixed the issue. 

It is recommended that all website owners be aware of securing their websites. They must be aware of vulnerable versions of WordPress plugins on their websites frequently and upgrade them to the latest versions to prevent malicious actors from exploiting them.

Struggling to Apply The Security Patch in Your System? –
Try All-in-One Patch Manager Plus

Also Read:

Balaji

BALAJI is an Ex-Security Researcher (Threat Research Labs) at Comodo Cybersecurity. Editor-in-Chief & Co-Founder - Cyber Security News & GBHackers On Security.

Recent Posts

Hack The box “Ghost” Challenge Cracked – A Detailed Technical Exploit

Cybersecurity researcher "0xdf" has cracked the "Ghost" challenge on Hack The Box (HTB), a premier…

9 hours ago

Sec-Gemini v1 – Google’s New AI Model for Cybersecurity Threat Intelligence

Google has unveiled Sec-Gemini v1, an AI model designed to redefine cybersecurity operations by empowering…

10 hours ago

U.S. Secures Extradition of Rydox Cybercrime Marketplace Admins from Kosovo in Major International Operation

The United States has successfully extradited two Kosovo nationals, Ardit Kutleshi, 26, and Jetmir Kutleshi,…

15 hours ago

Ivanti Fully Patched Connect Secure RCE Vulnerability That Actively Exploited in the Wild

Ivanti has issued an urgent security advisory for CVE-2025-22457, a critical vulnerability impacting Ivanti Connect…

2 days ago

Beware! Weaponized Job Recruitment Emails Spreading BeaverTail and Tropidoor Malware

A concerning malware campaign was disclosed by the AhnLab Security Intelligence Center (ASEC), revealing how…

2 days ago

EncryptHub Ransomware Uncovered Through ChatGPT Use and OPSEC Failures

EncryptHub, a rapidly evolving cybercriminal entity, has come under intense scrutiny following revelations of operational…

2 days ago