Cloud firewall management API SNAFU put 500k SonicWall customers at risk
The add-user API endpoint of SonicWall's cloud management platform trusted a sequential partyGroupId parameter, so any authenticated user could add themselves to any tenant's user group. An attacker could then administer users and configure firewalls, VPN access and other devices for roughly 500,000 organisations.
Published on pentestpartners.com
SonicWall is a significant provider of security appliances, primarily firewalls, UTM, VPNs and content control.
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 API authorised the request only against the caller's own token and never checked that the caller was entitled to the partyGroupId being supplied, which was a globally unique sequential integer.
Impact
An attacker could modify firewall rules, add rogue VPN users and administer or delete accounts across any tenant, potentially enabling ransomware or toll fraud; the text notes the service stayed exposed for the whole disclosure period.
What the attacker needed
A free account on the cloud portal; internet access to the public API; guessable sequential group IDs
The fix
The vulnerability was fixed overnight on 26-27 August, though the author argues the add-user function should have been disabled while a fix was prepared.
How it was found
- Create an ordinary account on the cloud management portal and obtain a token for it.
- Send a request to the add-user endpoint, changing the email address so it differs from the one in the token.
- Set the partyGroupId to a guessed seven-digit number belonging to another tenant.
- The user is added to that group, granting access to its users, devices and settings.
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.
A web service often identifies things by numbers in its requests. Here the number naming a customer group was accepted without checking that the person sending it belonged to that group. Because the numbers simply counted upwards, anyone with a free account could guess other customers' numbers and join their group, then change their firewall settings.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.