Skip to content
RCE Write-up Intermediate

PMOS Help Desk <= 2.4 (form.php) PHP Code Injection Vulnerability

The form.php script in PMOS Help Desk 2.4 and earlier sends a redirect but does not exit, allowing remote attackers to inject and execute arbitrary PHP code via the options array parameter.

karmainsecurity.com

Published on karmainsecurity.com

form.php in PMOS Help Desk 2.4 and earlier sends a redirect to the web browser but does not exit, which allows remote attackers to conduct eval injection attacks and execute arbitrary PHP code via the options array parameter.

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 script fails to exit after sending a redirect, and then unsafely evaluates user-supplied input from the options array parameter.

Impact

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

What the attacker needed

None

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 is a vulnerability in a help desk web application. The form.php script is supposed to redirect the user after processing, but it does not stop running, so an attacker can send a special parameter that gets evaluated as PHP code, letting them run their own commands 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.