Security Experts:

Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Vulnerabilities

Researchers Used PHP Zero-Days to Hack PornHub

A team of researchers discovered a couple of serious vulnerabilities in PHP and managed to gain remote code execution access on one of the world’s most popular adult websites.

Dario Weißer, Ruslan Habalov and an expert who uses the online moniker “cutz” discovered in late May that they could hack PornHub by leveraging vulnerabilities in PHP.

A team of researchers discovered a couple of serious vulnerabilities in PHP and managed to gain remote code execution access on one of the world’s most popular adult websites.

Dario Weißer, Ruslan Habalov and an expert who uses the online moniker “cutz” discovered in late May that they could hack PornHub by leveraging vulnerabilities in PHP.

The researchers said the flaws could have been exploited to dump the website’s entire database, track its users, leak source code, and escalate into the network or root the system. However, they only gathered some information about the system and submitted a report through PornHub’s recently launched bug bounty program.

The company fixed the issue within hours and two weeks later it informed the researchers that they had earned $20,000 for their work.

The zero-day vulnerabilities discovered in the process were disclosed to PHP developers in mid-June, and they were patched on June 23 with the release of PHP 7.0.8, 5.6.23 and 5.5.37.

The PHP issues, tracked as CVE-2016-5771 and CVE-2016-5773, have been described as critical use-after-free flaws caused by the way PHP’s garbage collection algorithm interacts with certain objects. After analyzing the security holes, researchers determined that they can be remotely exploited using PHP’s unserialize function.

It’s worth noting that since a fix from PHP was not available at the time, PornHub resolved the problem by removing calls to the unserialize function.

In addition to the reward from the adult website, the researchers received $1,000 for each of the PHP flaws from HackerOne’s Internet Bug Bounty program, which covers vulnerabilities in open source and core Internet infrastructure software.

“It is well-known that using user input on unserialize is a bad idea. In particular, about 10 years have passed since its first weaknesses have become apparent. Unfortunately, even today, many developers seem to believe that unserialize is only dangerous in old PHP versions or when combined with unsafe classes. We sincerely hope to have destroyed this misbelief,” Habalov said in a blog post.

Related Reading: Fiat Chrysler Launches Bug Bounty Program

Related Reading: Traditional Industries Increasingly Turn to Bug Bounty Programs

Related Reading: Uber Offers up to $10,000 in Bug Bounty Program

Written By

Eduard Kovacs (@EduardKovacs) is a contributing editor at SecurityWeek. He worked as a high school IT teacher for two years before starting a career in journalism as Softpedia’s security news reporter. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.

Click to comment

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Join this webinar to learn best practices that organizations can use to improve both their resilience to new threats and their response times to incidents.

Register

Join this live webinar as we explore the potential security threats that can arise when third parties are granted access to a sensitive data or systems.

Register

Expert Insights

Related Content

Vulnerabilities

Less than a week after announcing that it would suspended service indefinitely due to a conflict with an (at the time) unnamed security researcher...

Risk Management

The supply chain threat is directly linked to attack surface management, but the supply chain must be known and understood before it can be...

Vulnerabilities

Apple has released updates for macOS, iOS and Safari and they all include a WebKit patch for a zero-day vulnerability tracked as CVE-2023-23529.

Application Security

Drupal released updates that resolve four vulnerabilities in Drupal core and three plugins.

Cloud Security

VMware vRealize Log Insight vulnerability allows an unauthenticated attacker to take full control of a target system.

Application Security

A CSRF vulnerability in the source control management (SCM) service Kudu could be exploited to achieve remote code execution in multiple Azure services.

IoT Security

Lexmark warns of a remote code execution (RCE) vulnerability impacting over 120 printer models, for which PoC code has been published.

Vulnerabilities

GoAnywhere MFT users warned about a zero-day remote code injection exploit that can be targeted directly from the internet