Skip to content
Memory corruption Disclosed report Intermediate

User provided values passed to PHP unset() function

A PHP library called unset() on a variable name taken from user input, so a malicious user could destroy arbitrary variables in the environment where the library runs. The program notes that this is an open-source library outside its bug bounty scope.

paulos__ Follow

Originally disclosed on HackerOne

  • Disclosed after 5 months

Summary by the program

In the Coinbase wpe commerce open source library, a researcher observed a call to the PHP unset() function that relied on user controlled input. The reporter observed that this could allow a malicious user to destroy arbitrary variables in the environment where this library is deployed. Unfortunately, Coinbase OSS libraries are out of scope of our bug bounty program, and researchers should directly submit an issue or pull request on the repository.

The original report as published on HackerOne, by paulos__. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

A malicious user could destroy arbitrary variables in the environment where the library is deployed.

What the attacker needed

Library deployed in an application; attacker can control the variable name

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

PHP has a function called unset() that deletes a variable. If a program lets a visitor choose which variable name gets deleted, the visitor can remove things the program still needs, which may break it or change how it behaves.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by paulos__

View all

16 more disclosed reports, best first.

More from Coinbase

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.