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.

Advertisement. Scroll to continue reading.

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 senior managing editor at SecurityWeek. He worked as a high school IT teacher before starting a career in journalism in 2011. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing for the latest cybersecurity threats, trends, and expert insights.

Click to comment

Trending

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.

Today’s attackers are no longer breaking in — they’re logging in. Join this live webinar as we break down the modern identity attack chain and examine how recent breaches exploited weaknesses in authentication, identity verification, and access management processes.

Register

AI has accelerated both sides of the fight. Adversaries are weaponizing vulnerabilities faster, while defenders are racing to ship detections and configurations. Join this live webinar as we explore how to prove your controls actually hold against new threats, map your security maturity, and unite breach simulation with automated pentesting into a single, coordinated program.

Register

People on the Move

Stephen Garcia has been named Chief Information Security Officer at BreachRx.

Kasper Lindgaard has been appointed Vice President of Security Strategy at CoreView.

Chaim Mazal has been named Chief Information Security Officer at GitLab.

More People On The Move

Expert Insights

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest cybersecurity news, threats, and expert insights. Unsubscribe at any time.