Skip to content
DoS Audit finding Intermediate

Worker-Induced Denial-of-Service in Deployment Requests Due to Lack of a Cancellation Mechanism

The BlueprintCore contract allows only one deployment request per project and lacks a cancellation or timeout mechanism. If a worker picks up a request but never submits proof, the request stays in Pickup state, blocking any further deployment requests for that project.

0x180db Follow with 0x23r0, 0x73696d616f and 29 others

Originally disclosed on Sherlock

Source: https://github.com/sherlock-audit/2025-03-crestal-network-judging/issues/509

Found by

0x180db, 0x23r0, 0x73696d616f, 0xDarko, 0xYjs, 0xhiros, AuditKiller, Cybrid, DeLaSoul, DharkArtz, FalseGenius, HarryBarz, HolyHak, KiroBrejka, MSK, anchabadze, edger, gegul, ifeco445, ilyadruzh, j3x, jacopod, lom_ack, octeezy, patitonar, pushkarm029, roshark, sabanaku77, t0x1c, udo, undefined_joe, zxriptor

The BlueprintCore contract enforces a single deployment request per project by using a check in the deploymentRequest function:

Solidity
require(projects[projectId].requestDeploymentID == 0, "deployment requestID already exists");

Once a worker picks up the deployment request via the submitDeploymentRequest function, the contract sets the request status to Pickup and assigns the worker’s address:

Solidity
require(requestDeploymentStatus[requestID].status != Status.Pickup, "requestID already picked by another worker");
requestDeploymentStatus[requestID].status = Status.Pickup;
requestDeploymentStatus[requestID].deployWorkerAddr = msg.sender;

There is no mechanism to cancel or reset the request if the assigned worker fails to submit the deployment proof through submitProofOfDeployment, leaving the request in an indefinite Pickup state. Consequently, the project’s deployment process becomes permanently stalled, as further deployment requests cannot be initiated because the project's requestDeploymentID remains set.

Primary Root Cause:
The root cause is the contract’s design, which permits only one active deployment request per project and lacks a timeout or cancellation function to reset a stalled request when the assigned worker does not complete the process.

Impact:
The project owner cannot progress the deployment, effectively halting the project lifecycle. Funds or NFT-based agent creation fees become unusable as the deployment never completes.

Mitigation:
Implement a timeout mechanism that allows the deployment owner to cancel and reset a stalled deployment request if no proof is submitted within a defined period (e.g., 7 days).

Discussion

sherlock-admin2

The protocol team fixed this issue in the following PRs/commits: https://github.com/crestalnetwork/crestal-omni-contracts/pull/19

The original report as published on Sherlock, by 0x180db. Images and videos are our own copies; raw HTML is shown as text. View it on Sherlock.

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 contract design permits only one active deployment request per project and lacks a timeout or cancellation function to reset a stalled request.

Impact

The project owner cannot progress the deployment, effectively halting the project lifecycle, and funds or NFT-based agent creation fees become unusable.

What the attacker needed

A project with a deployment request; a worker picks up the request; worker fails to submit proof

The fix

The protocol team fixed this issue by implementing a timeout mechanism that allows the deployment owner to cancel and reset a stalled deployment request.

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 smart contract lets a project owner request a deployment, and a worker can accept it. But once accepted, there is no way to cancel if the worker disappears, so the project is stuck forever.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by 0x180db

View all

2 more disclosed reports, best first.

More from Crestal Network

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.