Skip to content
RCE Disclosed report Intermediate

Sendmail Remote Code Execution Vulnerability in Concrete5 version 5.7.3.1

Concrete5 fails to properly validate the sender email address used in registration notification emails, allowing an authenticated administrator to inject sendmail options. An attacker could exploit this to execute arbitrary code on the server, but only if sendmail is used and the attacker is an administrator or can trick one via CSRF.

egix Follow

Originally disclosed on HackerOne

  • Triaged in 6 hours
  • Fixed in 10 hours
  • Disclosed after 32 days

Concrete5 is vulnerable to a Remote Code Execution because it fails to properly validate certain user input used as sender email address when sending out a registration notification email. This vulnerability is mitigated by the fact that it can be exploited only by authenticated administrator users (even though it could be exploited via a Cross Site Request Forgery attack as well) and only if the email is being sent with sendmail.

The original report as published on HackerOne, by egix. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

Root cause

Likely the application passes the user-supplied sender email address directly to the sendmail command without sanitising it, allowing injection of additional sendmail options.

Impact

An authenticated administrator (or an attacker using CSRF against an admin) could execute arbitrary code on the server, but only if the site sends email via sendmail.

What the attacker needed

Authenticated administrator access; site uses sendmail for email; or CSRF against an admin

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.

Concrete5 is a content management system. When it sends a registration email, it uses the sender address you provide. If that address is not checked, an attacker who is already an administrator can add extra instructions that the sendmail program will run as commands, potentially taking over the server. This only works if the site uses sendmail and the attacker has admin access or can trick an admin into clicking a link.

What is RCE?

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

More by egix

View all

13 more disclosed reports, best first.

More from Concrete CMS

View all

The newest disclosed reports for this program.

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.