Skip to content
RCE Write-up Intermediate

Getting Unauthenticated Remote Code Execution On The Logsign Unified Secops Platform

The Logsign Unified SecOps Platform had an authentication bypass via a password reset mechanism lacking rate limiting, allowing brute-force of a 6-digit reset code, and a post-authentication command injection due to a custom escapeshellarg function that only escaped single quotes. An attacker could chain these to achieve unauthenticated remote code execution as root.

Yulin Sung Follow

Published on zerodayinitiative.com

Earlier this year, the Trend Micro Zero Day Initiative (ZDI) acquired several vulnerabilities in the Logsign Unified SecOps Platform. These were all reported to the ZDI by Mehmet INCE (@mdisec) from PRODAFT.com.

Yulin Sung, Mehmet INCE (@mdisec), on zerodayinitiative.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 password reset endpoint lacked rate limiting on reset code verification, and the command injection endpoint used a custom escapeshellarg function that only escaped single quotes, allowing shell metacharacters like backticks to be injected.

Impact

An unauthenticated attacker could reset the admin password and then execute arbitrary commands as root on the server, leading to full compromise.

What the attacker needed

Network access to TCP port 443 on the target; Default admin user exists; Ability to send many HTTP requests within 3 minutes

The fix

The vulnerabilities were fixed in version 6.4.8.

How it was found

  1. Send a POST request to the forgotpassword endpoint with the admin username to trigger a reset code.
  2. Repeatedly send POST requests to the verify_reset_code endpoint with guessed 6-digit codes within the 3-minute window.
  3. If the code is not guessed within 3 minutes, request a new reset code and repeat the brute-force until successful.
  4. Use the obtained verification_code to call the reset_user_password endpoint and set a new admin password.
  5. Log in with the new admin credentials.
  6. Send a POST request to the demomode endpoint with a crafted list parameter containing backticks to execute a reverse shell command.

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.

This report describes two bugs in a security platform. The first lets an attacker guess a short numeric code sent to reset a password because the server does not limit how many guesses can be made. The second lets someone who is already logged in run system commands because the code that was supposed to clean up input only removed one dangerous character. Together, they let an outsider take full control of the server.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.