Skip to content
RCE Write-up Intermediate

WebCalendar <= 1.2.4 (install/index.php) PHP Code Injection Vulnerability

The install script in WebCalendar did not properly restrict access, so an attacker could overwrite the settings file with arbitrary values. This allowed the attacker to run arbitrary PHP code on the server.

karmainsecurity.com

Published on karmainsecurity.com

WebCalendar contains an access restriction weakness when passing input to the install/index.php script. This allows an attacker to update includes/settings.php with arbitrary values, leading to execution of arbitrary PHP code.

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 install/index.php script lacked proper access restrictions, letting unauthenticated users write to includes/settings.php.

Impact

An attacker could execute arbitrary PHP code on the server, potentially taking full control of the application and host.

What the attacker needed

Install/index.php reachable; no authentication required

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.

WebCalendar is a calendar web application. Its installation script was left reachable and did not check who was using it, so anyone could make it rewrite a configuration file. Because that file is later loaded as PHP code, the attacker could put their own code there and have the server run it.

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.