Skip to content
RCE Write-up Intermediate

CVE-2024–0195 Improper Control of Generation of Code (‘Code I

The saveFunction method in spider-flow 0.4.3 accepts a script parameter that is evaluated as code, so an unauthenticated attacker can send a crafted request to the function save endpoint and run arbitrary commands on the server. The text states this allows full server compromise, data theft and use of the host for further attacks.

Ajay Naik Follow

Published on infosecwriteups.com

CVE-2024–0195 is a critical vulnerability identified in spider-flow version 0.4.3. The issue arises from improper control in the FunctionService.saveFunction method located in FunctionController.java, which leads to code injection vulnerabilities.

Ajay Naik, on infosecwriteups.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

Likely the saveFunction endpoint passes user-supplied script content straight into a code evaluation engine without authentication or validation.

Impact

An unauthenticated attacker could execute arbitrary code and fully compromise the server, affecting confidentiality, integrity and availability; the text gives no evidence of a defence limiting the exploit.

What the attacker needed

Network access to the spider-flow instance; no authentication required

The fix

The text gives no patch; it advises taking the version offline, restricting access, segmenting the network and watching for updates until a secure version is released.

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.

spider-flow is a web tool for building crawlers. It lets users save small scripts, but it does not check what those scripts contain, so a stranger can send a request that makes the server run their own commands. That is called remote code execution: the attacker controls the machine without ever logging in.

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 Ajay Naik

View all

6 more disclosed reports, best first.

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.