RCE on partner.steampowered.com
A parameter on the partner site was not validated properly, letting an attacker choose which PHP function gets called and with what argument types. By switching to a function that accepts two strings, the attacker could reach assert, which then evaluated code and allowed arbitrary code execution.
- Triaged in 23 hours
- Fixed in 26 days
- Paid in 26 days
- Disclosed after 5.3 years
Summary by the program
Insufficient validation of parameters allowed an attacker to specify the name of a PHP function to call with parameter types (array, array, string). This could be changed to a call with parameter types (string string) using array_diff_uassoc. This enabled calling assert, which at the time invoked eval, enabling arbitrary code execution.
Summary by the researcher
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
An attacker could run arbitrary code on the server, which at the time was possible because assert evaluated its input.
What the attacker needed
Ability to supply the function name parameter
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.
The website let a visitor name a built-in PHP function (a reusable piece of code) for the server to run. The site only checked the function loosely, so the attacker picked one that let them reach a feature that runs text as code. That meant they could run their own code on the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.