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 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 which was located at /etc/apache2/sites-enabled/

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/

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 is an Ex-Security Researcher (Threat Research Labs) at Comodo Cybersecurity. Editor-in-Chief & Co-Founder - Cyber Security News & GBHackers On Security.

Recent Posts

PrestaShop Website Under Injection Attack Via Facebook Module

A critical vulnerability has been discovered in the "Facebook" module (pkfacebook) from for PrestaShop. The vulnerability, CVE-2024-36680, allows a…

1 day ago

Beware Of Illegal OTT Platforms That Exposes Sensitive Personal Information

A recent rise in data breaches from illegal Chinese OTT platforms exposes that user information, including names and financial details,…

1 day ago

Beware Of Zergeca Botnet with Advanced Scanning & Persistence Features

A new botnet named Zergeca has emerged, showcasing advanced capabilities that set it apart from typical Distributed Denial of Service…

1 day ago

Mailcow Mail Server Vulnerability Let Attackers Execute Remote Code

Two critical vulnerabilities (CVE-2024-31204 and CVE-2024-30270) affecting Mailcow versions before 2024-04 allow attackers to execute arbitrary code on the server.…

1 day ago

Hackers Attacking Vaults, Buckets, And Secrets To Steal Data

Hackers target vaults, buckets, and secrets to access some of the most classified and valuable information, including API keys, logins,…

1 day ago

Hackers Weaponizing Windows Shortcut Files for Phishing

LNK files, a shortcut file type in Windows OS, provide easy access to programs, folders, or websites. Created automatically during…

1 day ago