Skip to content
RCE Write-up Intermediate

phpScheduleIt <= 1.2.11 (check.php) Multiple PHP Code Injection Vulnerabilities

phpScheduleIt before 1.2.11 passed user-supplied date parameters into PHP's eval function without proper sanitisation. A remote attacker could inject PHP code through the end_date parameter to reserve.php and the start_date and end_date parameters to check.php, leading to arbitrary code execution.

karmainsecurity.com

Published on karmainsecurity.com

Multiple eval injection vulnerabilities in phpScheduleIt before 1.2.11 allow remote attackers to execute arbitrary code via (1) the enddate parameter to reserve.php and (2) the startdate and enddate parameters to check.php. NOTE: the startdate/reserve.php vector is already covered by CVE-2008-6132.

The author, on karmainsecurity.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Root cause

Likely the application built PHP code strings from unsanitised date parameters and passed them to eval, so attacker-controlled text became executable code.

Impact

A remote attacker could execute arbitrary code on the server, potentially taking full control of the application and its data.

What the attacker needed

Network access to the application; no authentication stated

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 write-up has not been written yet. The Original tab links to the source.

This software took dates typed in by a user and ran them as if they were computer instructions, using a dangerous PHP feature called eval. Because the input was not cleaned, someone could type extra instructions that the server would then run. That let an attacker 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.