Skip to content
RCE Disclosed report Advanced CVE-2024-2195

Aim Web API vulnerable to Remote Code Execution

The Aim web API's run search endpoint fails to properly restrict access to the RunView object, allowing an attacker to execute arbitrary code through the query parameter. This enables remote code execution on the server, potentially leading to full system compromise.

aim

Originally disclosed on huntr

Critical View original

A critical Remote Code Execution (RCE) vulnerability was identified in the aimhubio/aim project, specifically within the /api/runs/search/run/ endpoint, affecting versions >= 3.0.0. The vulnerability resides in the run_search_api function of the aim/web/api/runs/views.py file, where improper restriction of user access to the RunView object allows for the execution of arbitrary code via the query parameter. This issue enables attackers to execute arbitrary commands on the server, potentially leading to full system compromise.

From the GitHub Advisory Database (GHSA-mxvw-cj37-8g2h, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

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

Impact

An attacker could execute arbitrary commands on the server, potentially leading to full system compromise.

What the attacker needed

Access to the Aim web API

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.

A web API endpoint that lets users search runs did not properly check what code it was allowed to run. An attacker could send a special search request that made the server run their own commands, giving them control of the machine.

What is RCE?

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

More from aim

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.