Skip to content
Account takeover Write-up Intermediate

PreAuth RCE in Moodle Part II Session Hijack in Moodle's Shibboleth

When database sessions are used, the Shibboleth plugin over-uses PHP's session_decode, allowing a session hijack; the text does not detail admin escalation or RCE here.

Johannes Moritz Follow

Published on haxolot.com

In our previous blogpost we have introduced a pre-auth RCE in Moodles Shibboleth plugin. This RCE could be triggered when Moodle was configured to store sessions in individual files which is the default configuration for new installations.

The Haxolot'ls, on haxolot.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

The plugin over-uses PHP's session_decode when database sessions are configured, leading to session hijack.

What the attacker needed

Database session handler configured

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.

A bug in how the site handles sessions could let an attacker take over another user's session, but the text does not say they get the cookie or run code.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More by Johannes Moritz

View all

1 more disclosed report, best first.

More from Moodle

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.