OSI Security - Penetration Testing & Web Application Security Consultants
  • Home
  • Try
  • Pricing
  • Services
    • Managed Monthly Penetration Testing Service
    • Managed Quarterly Penetration Testing Service
    • Email Security Review
    • Request a quote for Penetration Testing
    • Bug Bounty Penetration Test
    • Remote Support
  • Solutions
  • Company
    • Advisories
    • Customers
    • News and Press Releases
    • Blog
    • Contact
    • Careers
  • Home
  • Try
  • Pricing
  • Services
    • Managed Monthly Penetration Testing Service
    • Managed Quarterly Penetration Testing Service
    • Email Security Review
    • Request a quote for Penetration Testing
    • Bug Bounty Penetration Test
    • Remote Support
  • Solutions
  • Company
    • Advisories
    • Customers
    • News and Press Releases
    • Blog
    • Contact
    • Careers

Moodle URL Manipulation Remote Account Information Disclosure

Date:
04-Apr-2017

Product:
Moodle

Versions affected:
2.4.10, 2.5.6, 2.6.3, 2.7 and earlier.

Vulnerability:
Information disclosure.

Example:
/user/edit.php?id= reveals account owner name

1. Log in to http://demo.moodle.net/ as user student:sandbox.
2. Click view profile when logged in (student is id=4).
3. Change id parameter from 4 to 3, which is the teacher (http://demo.moodle.net/user/profile.php?id=3). The HTML response says 'Terri Teacher' who the 'student' user has access to.
4. Change id parameter to 2 (http://demo.moodle.net/user/profile.php?id=2). The HTML response says "The details of this user are not available to you" and the navigation bar above says "Home / My profile / View profile / User".
5. Note that it says "User" - but hides the name!
6. Change the URL from profile.php to edit.php (http://demo.moodle.net/user/edit.php?id=2).
7. The HTML message is "Sorry, but you do not currently have permissions to do that (Edit user profile)" ... BUT, the navigation bar says "Home / Users / Admin User".
Voilà! The account name is "Admin User"

Effective on university websites which have 1+ million end users.

Credit:
Discovered by Patrick Webster

Disclosure timeline:
29-May-2014 - Discovered during audit, reported to tracker.
11-Jul-2014 - Fix committed MDL-45760.
14-Jul-2014 - Patch released for 2.4.11, 2.5.7, 2.6.4, 2.7.1.
04-Apr-2017 - Public disclosure.
​
About OSI Security: 

OSI Security is an independent network and computer security auditing 
and consulting company based in Sydney, Australia. We provide internal 
and external penetration testing, vulnerability auditing and wireless 
site audits, vendor product assessments, secure network design, 
forensics and risk mitigation services. 

We can be found at http://www.osisecurity.com.au/ ​​​
NSW Government ICT Services (SCM0020) approved supplier
OSI Security is an approved supplier to the Victorian Government
OSI Security is an approved supplier to the Queensland Government
OSI Security is an approved supplier to the New Zealand Government
Picture
External Penetration Testing
Managed Security Services
​Source Code Review
Web Application Security Testing
Firewall Configuration and Rulesets
WiFi Access Point and Client Auditing
Forensics and Data Recovery
System Hardening and Configuration
Metasploit Pro
Tenable Nessus
Acunetix Web Scanner
Nexpose Vulnerability
Secunia Software Inspection
Elcomsoft Password Cracking
PortSwigger BurpSuite
HP Fortify
 
Contact
Clients
Advisories
Privacy policy
​
Ethics Statement
Disclosure Policy
OSI SECURITY ACN 144 579 751 © 2010 - 2025.
​ALL RIGHTS RESERVED. SYDNEY, AUSTRALIA.
Join newsletter

Picture

OSI Security is proud to support a number of recognised charities, development projects and industry groups...

The Australian Computer Museum Society Incorporated
Hackers Helping Hackers
sqlmap.org
Metasploit Framework
2600-AU Australia