SugarCRM <= 12.2.0 (updateGeocodeStatus) Bean Manipulation Vulnerability
The updateGeocodeStatus REST endpoint lets a user modify arbitrary Sugar Beans without proper authorisation checks. An attacker could use this to escalate privileges by sending a crafted HTTP request.
karmainsecurity.com
Published on karmainsecurity.com
The vulnerability is exploitable through the "/maps/updateGeocodeStatus" REST API endpoint. This might allow a malicious user to modify arbitrary Sugar Beans, and that could lead to a variety of security impacts, such as Privilege Escalation attacks by sending an HTTP request like the following:
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 endpoint accepts a Bean identifier and fields from the request without checking that the caller is allowed to modify that Bean or those fields.
Impact
A malicious user could modify arbitrary Beans, which may lead to privilege escalation.
What the attacker needed
Authenticated user; access to the REST API
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.
SugarCRM stores its records as objects called Beans. A web endpoint meant to update map geocoding status accepted changes to any Bean, not just the ones it should, so a logged-in user could alter records they should not be able to touch, including their own role or permissions.
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.