Osegi
Security·2 min read

Safe Exam Browser bypass lets Chrome pass as SEB on Moodle

A developer found that Moodle's Safe Exam Browser check relies on a single header, then built a tool that tricks it from ordinary Chrome.

A laptop screen showing an online exam page in a Chrome browser window with code and a padlock icon overlay.
Image: Хабр

A developer has published a tool that tricks Moodle into thinking an ordinary Chrome browser is Safe Exam Browser (SEB), the locked-down kiosk browser many universities require for online tests.

Safe Exam Browser is software that blocks everything except the exam page: no other tabs, no copy-paste, no switching apps. Moodle, the widely used learning platform, has a plugin that only unlocks certain quizzes once it sees proof the student is running SEB rather than a regular browser.

How does the check work

According to the developer's write-up, Moodle sends a header containing a hash calculated from the quiz's own configuration file, which is itself publicly readable. Because the configuration is openly accessible, anyone can calculate the same hash a genuine SEB installation would produce and send it as if a real SEB were running. The developer verified this by comparing hashes generated by his tool against those sent by a genuine SEB installation, and found Moodle also caches a successful check in the session, so the special header is only needed once per attempt.

The developer built two versions: a scripted client that can log in and answer quizzes automatically, and a proxy tool that lets someone click through a test by hand in a normal browser while the proxy quietly adds the right header. He used the approach to complete an English course, scoring 772 out of 780 points, and says the project is released publicly for Windows, macOS and Linux under a non-commercial open license.

What this means for exam security

The case is a reminder that a security check performed entirely by the client, rather than something a server can independently confirm, can usually be reproduced by anyone willing to study the protocol. SEB's configuration files being openly readable made it possible to work out exactly what the server expected. Universities relying on SEB for high-stakes exams may need additional server-side safeguards if they want the check to hold up against a motivated student with some free time and a packet-sniffing tool.

Apps worth a look

SUMO: the number puzzle

Tap the right tiles, add them up, hit the target. Easy to learn, hard to master. Free, for all ages.

Tags:safe exam browsermoodleexam securitybypassmitmproxyopen source

More from this day

See all →

More in: Security

See all →