Skip to content

StackOverflowExcept1on/CVE-2021-36393

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

CVE-2021-36393

Error-based blind SQL injection with bit-shifting approach for Moodle 3.10.4.

Allows an attacker to perform arbitrary database queries. For example, you can steal:

  • test answers from the database

    Modify the script.js file and run it on route /mod/quiz/attempt.php?attempt=...&cmid=...

  • user password hashes:

    (SELECT password FROM mdl_user WHERE id = 2 LIMIT 1)
  • user sessions:

    (SELECT sid FROM mdl_sessions ORDER BY id DESC LIMIT 1)

How to use it?

You must be logged in and enrolled in at least one course. The just copy the script.js code into your browser console and run it on a website that has the vulnerable version of Moodle installed.

How to check the installed version of Moodle?

DOMAIN="example.com"
curl -s https://$DOMAIN/lib/upgrade.txt | head

About

Error-based blind SQL injection with bit-shifting approach for Moodle 3.10.4

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published