A christmas tale: pwning GTB Central Console (CVE-2024-22107 & CVE-2024-22108)
The GTB Central Console had an unauthenticated SQL injection in the setTermsHash action that allowed changing the Administrator password, and an authenticated command injection in the DNS settings that allowed executing arbitrary commands. An attacker could chain these to gain remote code execution as root.
Dear Fellowlship, today’s homily is about the paradox of how adding security solutions to your infrastructure increases the vulnerable surface.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application directly concatenated user input into SQL queries and shell commands without proper sanitisation or parameterisation.
Impact
An attacker could gain remote code execution as root on the GTB Central Console, leading to full compromise of the DLP system and potentially the entire domain.
What the attacker needed
Network access to the GTB Central Console; no authentication for SQLi; valid Administrator session for command injection
The fix
The vulnerabilities were fixed by the vendor after being reported.
How it was found
- Boot a Ubuntu Live CD and mount the filesystem to replace the GRUB password.
- Reboot and edit the GRUB entry to add init=/bin/bash to get a root shell.
- Remount the filesystem as read-write and add a new user with sudo privileges.
- Access the web interface and identify the unauthenticated ccapi.php endpoint.
- Send a request to the setTermsHash action with a crafted hash parameter to update the Administrator password.
- Log in as Administrator and send a request to the systemSettingsDnsData action with a crafted host_name parameter to execute commands.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This report describes two security holes in a data loss prevention (DLP) product. The first hole lets anyone change the administrator's password without logging in, because the login form's input is not properly checked. The second hole lets an administrator run system commands on the server, which can be abused to take full control.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.