Skip to content
Access control Write-up Intermediate

Vulnerability Overview

An overly broad filter pattern in Bonita Web's API authorization filters allowed users with a valid session but no privileges to bypass authorization by appending a crafted string to the API URL. This could lead to remote code execution by abusing privileged API actions to deploy malicious code.

rhinosecuritylabs.com

Published on rhinosecuritylabs.com

Bonita Web 2021.2 is affected by an authentication/authorization bypass vulnerability due to an overly broad filter pattern used in the API authorization filters.

David Yesland, on rhinosecuritylabs.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

The authorization filter used a substring match on the URL path to decide whether to skip authentication, so any URL containing the excluded pattern bypassed the check.

Impact

An attacker with a valid session but no privileges could bypass authorization and potentially achieve remote code execution, though a valid session is required.

What the attacker needed

A valid user session; network access to the Bonita server

The fix

The vulnerability was fixed in later versions by correcting the filter pattern to be more strict.

How it was found

  1. Run the vulnerable Bonita Docker image.
  2. Log in and create a low-privileged user.
  3. Append a crafted string to an API URL to bypass authorization.
  4. Access privileged API endpoints and deploy malicious code.

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.

The application used a filter to check if a user is allowed to access certain API endpoints. The filter was supposed to skip checks only for a specific harmless path, but it actually skipped checks whenever that path appeared anywhere in the URL. So an attacker with any valid account could add that path to a privileged API request and the filter would let it through, even though the user had no 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.