Skip to content
RCE Write-up Advanced

Anatomy of a Build Tool Vulnerability: Auditing Nubank’s Vessel

The Vessel build tool passes build arguments directly to Java's Runtime.exec without validation, and passes all host environment variables to subprocesses. An attacker who can influence a filename or build configuration could inject compiler flags to achieve remote code execution, and credentials may be leaked in logs.

rdin777 Follow

Published on medium.com

Subtitle: How a simple Clojure wrapper for shell commands can lead to RCE, Data Leaks, and Infrastructure risk. Introduction In modern CI/CD pipelines, build tools are the “crown jewels.” They have access to source code, secrets, and production registries.

rdin777, on medium.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 exec function passes user-influenced arguments directly to Runtime.exec without validation, and inherits all host environment variables.

Impact

An attacker could potentially achieve remote code execution during compilation and leak registry credentials or tokens in plaintext logs.

What the attacker needed

Control over a filename or build config; access to the build pipeline

The fix

The tool should whitelist only necessary environment variables, validate arguments with strict regex, and mask sensitive data in logs.

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.

A build tool is software that automatically compiles and packages code. This tool runs system commands without checking the inputs, so someone who can add a file with a tricky name could make the tool run extra commands. It also passes all secret keys from the build machine to those commands, which could leak them.

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 rdin777

View all

2 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.