Galleon NTS-6002-GPS Command Injection vulnerability (CVE-2022-27224)
The Galleon NTS-6002-GPS device's web management interface had a command injection vulnerability in the Network Tools section, allowing a low-privilege authenticated attacker to execute commands as root. This could lead to full control of the device, including reading sensitive files like /etc/shadow.
pentestpartners.com
Published on pentestpartners.com
Galleon Systems’ GPS NTP time server had a command injection vulnerability in the firmware of their NTS GPS device which could allow total control of the device through the web management interface.
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
Impact
An attacker could gain root-level command execution, potentially controlling network time, interfering with Kerberos authentication, disrupting SCADA/ICS systems, or using the device as a backdoor; however, the vendor was working on a patch and mitigations like firewalls and strong passwords are recommended.
What the attacker needed
Authenticated access to web UI; low-privilege account
The fix
The vendor was working on a software update to patch the issues, but it had not been released at the time of writing; mitigations include restricting access with firewalls and using strong passwords.
How it was found
- Log in to the web management interface with low privileges.
- Navigate to the Network Tools section (e.g., DNS Lookup).
- Enter a value containing shell metacharacters (e.g., 'buffer&id;') into the input field.
- Submit the form to execute the injected command.
- Use shell features like IFS and variable substitution to bypass character restrictions.
- Retrieve sensitive files such as /etc/shadow to confirm root-level access.
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.
The device's web page for network tools (like ping or DNS lookup) did not properly check what users typed into the input fields. An attacker who could log in with low privileges could type special characters that tricked the device into running extra commands, and because the web server ran as the all-powerful root user, those commands could do anything on the device.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.