Swift Sensors Gateway device password generation authentication bypass vulnerability
The device password for the Swift Sensors Gateway is generated from the publicly visible Gateway ID, allowing anyone who knows the ID to log in via SSH as the 'pi' user and escalate to root. The same credentials are used by the bridge software to authenticate to the backend, potentially allowing data manipulation or disabling sensor reporting.
Originally disclosed on Cisco Talos
An authentication bypass vulnerability exists in the device password generation functionality of Swift Sensors Gateway SG3-1010. A specially-crafted network request can lead to remote code execution.
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 report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker on the network or internet with knowledge of the Gateway ID could log in as root, potentially leading to remote code execution, and could also access the backend sensor data endpoint to manipulate or disable reporting.
What the attacker needed
Knowledge of the Gateway ID; network access to the device
The fix
The vendor patched the vulnerability, likely by changing the password generation to use a secret or random value not derivable from the public Gateway ID.
How it was found
- Obtain the Gateway ID from the front of the device.
- Derive the password using the known generation mechanism.
- Connect to the SSH service using username 'pi' and the derived password.
- Run 'sudo su' to become root.
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 report has not been written yet. The Original tab links to the source.
The gateway device has a hidden SSH service that lets you log in remotely. The password for this service is created from the device's ID, which is printed on the front of the device. So anyone who can see the ID can figure out the password and take control of 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.