SecurePwn Part 1: Bypassing SecurePoint UTM’s Authentication (CVE-2023-22620)
The UTM firewall returns a sessionId even for failed login attempts, leaking the session identifier of the last authenticated user. An attacker who knows the administrator's User-Agent and shares the same source IP address could use this leaked sessionId to bypass authentication and access the administrative panel.
Published on rcesecurity.com
While working on a recent customer engagement, I discovered two fascinating and somewhat weird bugs in SecurePoint’s UTM firewall solution . The first one, aka CVE-2023-22620, is rated critical for an attacker to bypass the entire authentication and gain access to the firewall’s administrative panel.
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 authentication handler returns the sessionId of the last active user even when the supplied credentials are wrong, instead of returning no session on failure.
Impact
An attacker who can match the administrator's User-Agent and source IP address could bypass authentication and gain access to the firewall's administrative panel, which the text says can lead to root access; the need for the same REMOTE_ADDR limits the attack.
What the attacker needed
An administrator logs in to the UTM; attacker knows the admin's User-Agent; attacker shares the admin's source IP address
The fix
The authentication handler should only return a sessionId after successful authentication and never expose another user's session.
How it was found
- Wait for an administrator to log in to the UTM so that a valid sessionId exists.
- Send a login request with any username and a wrong password to the administrative panel on port 11115.
- Observe that the response contains the sessionId of the last authenticated user.
- Use that sessionId from the same browser and same source IP address as the administrator to access the panel.
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.
When you log in to a website, the server gives your browser a temporary pass (a session ID) so you don't have to type your password on every page. This firewall accidentally handed out the administrator's pass to anyone who tried to log in with a wrong password. To actually use that pass, an attacker also had to match the administrator's browser type and come from the same network address, which made it hard but not impossible.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.