Rapid7 Vulnerability & Exploit Database

ATutor 2.2.1 Directory Traversal / Remote Code Execution

Back to Search

ATutor 2.2.1 Directory Traversal / Remote Code Execution

Disclosed
03/01/2016
Created
05/30/2018

Description

This module exploits a directory traversal vulnerability in ATutor on an Apache/PHP setup with display_errors set to On, which can be used to allow us to upload a malicious ZIP file. On the web application, a blacklist verification is performed before extraction, however it is not sufficient to prevent exploitation. You are required to login to the target to reach the vulnerability, however this can be done as a student account and remote registration is enabled by default. Just in case remote registration isn't enabled, this module uses 2 vulnerabilities in order to bypass the authentication: 1. confirm.php Authentication Bypass Type Juggling vulnerability 2. password_reminder.php Remote Password Reset TOCTOU vulnerability

Author(s)

  • mr_me <steventhomasseeley@gmail.com>

Platform

PHP

Architectures

php

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/linux/http/atutor_filemanager_traversal
msf exploit(atutor_filemanager_traversal) > show targets
    ...targets...
msf exploit(atutor_filemanager_traversal) > set TARGET < target-id >
msf exploit(atutor_filemanager_traversal) > show options
    ...show and set options...
msf exploit(atutor_filemanager_traversal) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;