delete_one

python · standard library · Collection
sinkDerived from model facts
RoleSink
WeaknessCWE-943
WatchesArgument[0]
Kindnosql-injection
Confidencelow
Corroboration1

Sink boundary: Input is interpreted as NoSQL query data or operator structure.

Argument map · what each slot does

The pack does not provide a callable signature for this record; the watched access path is shown directly.

ArgAccess pathPurposeWatched
Argument[0]Argument[0]The access path Atropos marks for this model.▲ sink
The weakness
CWE-943
Special Elements in Data Query Logic

External input changes the intended logic of a data-store query.

What goes wrong
Attacker's-eye view · nosql-injection

A crafted object or query fragment changes matching, filtering, or update behavior.

// modeled boundary: Argument[0] delete_one(attacker_influenced_value);
To decide if this call is a bug, check
1Separate query structure from values.
2Reject unexpected operators and types.
3Apply least-privilege database access.
These checks require the surrounding codebase. The model names the boundary; it does not decide reachability or prove that a guard dominates every path.
Is this a bug in your code?Atropos stops here — by design

Atropos identifies Argument[0] as a nosql-injection sink. It cannot see whether untrusted data reaches this call in your repository.

Lachesis is the codebase-level step: it traces reachability and guards for this symbol.

Check this symbol in Lachesis
The family · nosql-injection
Model facts · verbatim from the pack
RoleKindAccess pathModel IDConfidence
sinknosql-injectionArgument[0]python.collection.deleteone.a0low · corrob. 1