Skip to content
RCE Write-up Advanced

RCE via LDAP truncation on hg.mozilla.org

An authenticated user could exploit an LDAP query flaw in the pash shell to achieve remote code execution on hg.mozilla.org infrastructure.

Joern Schneeweisz Follow

Published on 0day.click

Given my interest in SCM and CI systems I was a little keen to see how this is done at Mozilla as part of their bug bounty program. Thanks to freddy I was granted Level 1 access to Mozilla’s SCM at hg.mozilla.org in late 2022.

joernchen (@joernchen), on 0day.click

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

Impact

An authenticated user with Level 1 access could execute arbitrary commands on the hg.mozilla.org infrastructure.

What the attacker needed

Level 1 access to Mozilla SCM

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.

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 Joern Schneeweisz

View all

4 more disclosed reports, best first.

More from Mozilla

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.