phpScheduleIt <= 1.2.10 Multiple PHP Code Injection Vulnerabilities
The reserve.php script in phpScheduleIt 1.2.10 and earlier passes the start_date parameter into PHP's eval function without proper sanitisation when magic_quotes_gpc is disabled. A remote attacker could inject PHP code through that parameter and have it executed on the server.
karmainsecurity.com
Published on karmainsecurity.com
Eval injection vulnerability in reserve.php in phpScheduleIt 1.2.10 and earlier, when magicquotesgpc is disabled, allows remote attackers to execute arbitrary PHP code via the startdate parameter.
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 start_date parameter is passed unsanitised into PHP's eval function, so user input is treated as executable code.
Impact
A remote attacker could execute arbitrary PHP code on the server, which could lead to full compromise of the application and its data.
What the attacker needed
Magic_quotes_gpc disabled; network access to reserve.php
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 takes a value from a user (the start date of a reservation) and feeds it directly into a PHP feature called eval, which runs whatever text it is given as code. Because the text is not cleaned first, an attacker can send PHP code instead of a date and the server will run it. That gives the attacker the same power as someone who can edit the website's code.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.