Skip to content
IDOR Write-up Beginner

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.

Vangelis Stykas Follow

Published on pentestpartners.com

SonicWall is a significant provider of security appliances, primarily firewalls, UTM, VPNs and content control.

PTP Admin, on pentestpartners.com

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

  1. Create an ordinary account on the cloud management portal and obtain a token for it.
  2. Send a request to the add-user endpoint, changing the email address so it differs from the one in the token.
  3. Set the partyGroupId to a guessed seven-digit number belonging to another tenant.
  4. 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.

More from SonicWall

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

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.