Skip to content
Access control Write-up Advanced

Authentication Bypass to RCE in Versa Concerto

Versa Concerto had an authentication bypass due to URL decoding inconsistencies, allowing access to restricted endpoints. Attackers could chain this with a race condition to write files and achieve remote code execution, and also bypass actuator authentication to leak credentials and gain admin access.

httpvoid.com

Published on httpvoid.com

Note - This is cross post from our work at Projectdiscovery Blog

The author, on httpvoid.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 authentication filter decoded and normalised the request URI before checking it, while the actual request was processed without decoding, creating a time-of-check to time-of-use mismatch.

Impact

An attacker could bypass authentication, write arbitrary files, achieve remote code execution, access actuator endpoints to leak credentials, and escape the Docker container to compromise the host.

What the attacker needed

Network access to the Concerto web interface; No authentication required for initial bypass

The fix

Versa released hot fixes for the reported issues.

How it was found

  1. Send a request with a path like /portalapi/v1/users/username/admin;%2fv1%2fping to bypass authentication.
  2. Access the package upload endpoint /portalapi/v1/package/spack/upload to write arbitrary files.
  3. Exploit a race condition to write /etc/ld.so.preload and a malicious shared object before they are deleted.
  4. Trigger a command execution (e.g., health check) to load the shared object and gain a reverse shell.
  5. Use the Traefik hop-by-hop header issue to drop X-Real-Ip and access /actuator endpoints.
  6. Download heap dump or traces to obtain credentials and log in as admin.

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 checked one version of the web address to decide if login was needed, but then used a different version to actually handle the request. By crafting a special address, an attacker could make the check think it was a public page while the real request went to a protected page. This let them skip login and reach sensitive functions.

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.