Summary
A Boolean-based SQL injection vulnerability in the "RHUB TurboMeeting" web application. This vulnerability could allow an attacker to execute arbitrary SQL commands on the database server, potentially allowing them to access sensitive data or compromise the server. Exploitation of this vulnerability, along with “Insecure Password Reset Mechanism” and “Command Injection in Certificate Signing Request”, allowed Mandiant to authenticate to the web application as the “admin” user and obtain remote command execution as “root”.
Severity
High - An attacker could gain access to sensitive information, modification or deletion of data, disruption of database operations, access to the underlying operating system.
Proof of Concept
The application was removing the semicolon, dash, underscore, and space characters. If present within the meeting_id parameter's value before adding them to the SQLite query. As spaces were essential to the injection, we developed an exploitation proof-of-concept (PoC) script in Python, which allowed the retrieval of the admin user's SHA1 hashed password by a series of Boolean-based database queries. The script automates the extraction of the password through this injection query:
1'/**/OR/**/1=2/**/UNION/**/select/**/password/**/from/**/employee/**/where/**/email='admin'/**/AND/**/substr(password,{i},1)='{char}'/**
This allows the retrieval of the password hash of the admin user, character by character.
Endpoint: http://HOST/as/wapi/vmp
POST request with meeting_id=$SQLi
parameter
Further Analysis
To address this vulnerability, the application's code should be modified to properly sanitize all user-supplied input before using it in SQL queries. This can be achieved by using prepared statements with parameterized queries, or by using appropriate escaping functions to ensure that special characters in user input are treated as literal values rather than SQL commands.
Timeline
Date reported: 4/17/2024
Date fixed:
Date disclosed: 7/24/2024
Summary
A Boolean-based SQL injection vulnerability in the "RHUB TurboMeeting" web application. This vulnerability could allow an attacker to execute arbitrary SQL commands on the database server, potentially allowing them to access sensitive data or compromise the server. Exploitation of this vulnerability, along with “Insecure Password Reset Mechanism” and “Command Injection in Certificate Signing Request”, allowed Mandiant to authenticate to the web application as the “admin” user and obtain remote command execution as “root”.
Severity
High - An attacker could gain access to sensitive information, modification or deletion of data, disruption of database operations, access to the underlying operating system.
Proof of Concept
The application was removing the semicolon, dash, underscore, and space characters. If present within the meeting_id parameter's value before adding them to the SQLite query. As spaces were essential to the injection, we developed an exploitation proof-of-concept (PoC) script in Python, which allowed the retrieval of the admin user's SHA1 hashed password by a series of Boolean-based database queries. The script automates the extraction of the password through this injection query:
This allows the retrieval of the password hash of the admin user, character by character.
Endpoint:
http://HOST/as/wapi/vmp
POST request withmeeting_id=$SQLi
parameterFurther Analysis
To address this vulnerability, the application's code should be modified to properly sanitize all user-supplied input before using it in SQL queries. This can be achieved by using prepared statements with parameterized queries, or by using appropriate escaping functions to ensure that special characters in user input are treated as literal values rather than SQL commands.
Timeline
Date reported: 4/17/2024
Date fixed:
Date disclosed: 7/24/2024