Skip to content
RCE Advisory Advanced CVE-2023-25569CVE-2023-25570

GHSL-2022-121_GHSL-2022-123: Multiple vulnerabilities in Apollo Configuration Management System - CVE-2023-25569, CVE-2023-25570

Apollo Configuration Management System had three vulnerabilities: SpEL injection in system configuration allowing RCE, improper authorization in Eureka service discovery allowing token leakage, and CSRF in the portal allowing role assignment. An attacker with admin access could execute code, a network attacker could steal tokens, and a low-privileged user could trick an admin into granting roles.

Michael Stepankin Follow

Originally disclosed on GitHub Security Lab

Apollo Configuration Management System is affected by multiple security vulnerabilities, including Post-Auth Remote Code Execution via SpL evaluation, Improper Authorization in Eureka Service Discovery and Cross Site Request forgery.

artsploit, on GitHub Security Lab

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The system evaluates user-controlled configuration values as Spring expressions, does not authenticate service registration requests, and disables CSRF protection for certain endpoints.

Impact

An attacker with admin access could execute arbitrary code, a network attacker could steal authentication tokens, and a low-privileged user could trick an admin into granting roles; the CSRF attack does not work in Chrome due to SameSite=Lax but works in Firefox and Safari.

What the attacker needed

Admin access to portal; network access to Tomcat; victim visits malicious page

The fix

The SpEL issue was not fixed as it requires admin privileges; the other two issues were fixed in version 2.1.0.

How it was found

  1. Log in to the Apollo portal and go to Admin tools > System Configuration.
  2. Set the fat.titan.url property to a SpEL expression that executes a command.
  3. Restart the application; the expression is evaluated and the command runs.
  4. Enable token authentication and start Config and Admin services.
  5. Send a POST request to Eureka to register a rogue admin instance.
  6. Use socat to redirect traffic and capture the leaked token.

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 report has not been written yet. The Original tab links to the source.

This report describes three security problems in a configuration management tool. One lets an administrator run commands on the server by changing a setting, another lets someone on the network steal authentication tokens by registering a fake service, and the third lets a malicious website perform actions on behalf of a logged-in administrator.

What is RCE?

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

More by Michael Stepankin

View all

16 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

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.