Skip to content
Access control Write-up Advanced

CVAuthHttpModule OnEnter Partial Authentication Bypass

The authentication check for a web service could be bypassed by setting a cookie to a hardcoded base64-encoded value, and the service also allowed reading arbitrary files. An attacker could read a log file containing a password reset token for the default admin account, reset its password, and then execute commands as SYSTEM.

srcincite.io

Published on srcincite.io

When Justin Kennedy and Brandon Perry asked me if I was interested in performing a little audit together, I couldn’t resist. Although time was limited, I decided to jump on board because true hacking collaboration is a rare commoditity these days.

The author, on srcincite.io

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 check relied on a static list of base64-encoded operation names in a cookie, and the file download function did not restrict the path.

Impact

An unauthenticated attacker could read files and, by chaining with a password reset token leak, gain admin access and execute commands as SYSTEM.

What the attacker needed

Network access to the CommVault web service; no authentication required

How it was found

  1. Set the cookie to the base64-encoded value of an allowed operation name to bypass authentication.
  2. Call the downLoadFile method with an arbitrary path to read files.
  3. Trigger a password reset for the SystemCreatedAdmin account to write a reset token into a log file.
  4. Use the file disclosure to read the log file and extract the password reset token.
  5. Reset the SystemCreatedAdmin password and log in to the Command Center.
  6. Execute a default workflow that runs a command as SYSTEM.

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 web service checked a cookie by simply base64-encoding it and comparing it to a fixed list of allowed values. Anyone could set the cookie to one of those values and skip the login check. The service also let you read any file the server process could access, so the attackers read a log file that contained a password reset token for the built-in admin account.

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.