Am I affected?

type your ash_oban version to check

Description

Improperly Controlled Modification of Dynamically-Determined Object Attributes vulnerability in ash-project ash_oban allows a user whose input reaches the :args option of AshOban.build_trigger/3 to retarget an update or destroy trigger at another record, including across tenants.

build_trigger/3 builds the trusted job arguments with atom keys (:primary_key, :tenant, :action_arguments) and merges the caller's :args underneath so the trusted values win on collision. Because Oban job arguments round-trip through JSON, the caller's keys arrive as strings, so Map.merge sees no collision and both keys survive. When the job is persisted the JSON object is de-duplicated keeping the last (string) key, and the worker reads the caller's value. The documentation describes :args as unable to affect the action, so an application that forwards user input into it for uniqueness scoping is exposed to authorization bypass and tenant isolation breaks.

This issue affects ash_oban: from 0.2.5 before 0.8.14.

Weaknesses & attack patterns

Weakness

CWE-915 · Improperly Controlled Modification of Dynamically-Determined Object Attributes in catalog → MITRE ↗

Attack patterns

CAPEC-77 · Manipulating User-Controlled Variables MITRE ↗

Affected — Hex / ash_oban Hex.pm ↗ Repository ↗

0.2.5 < 0.8.14 affected
every other version: unaffected
cpe cpe:2.3:a:ash-project:ash_oban:*:*:*:*:*:*:*:*
modules · source files · routines
modules 'Elixir.AshOban'
source files lib/ash_oban.ex
routines 'Elixir.AshOban':build_trigger/3

Affected — GitHub / ash-project/ash_oban Repository ↗

ce07922 < da2d81e affected
every other version: unaffected
cpe cpe:2.3:a:ash-project:ash_oban:*:*:*:*:*:*:*:*
modules · source files · routines
modules 'Elixir.AshOban'
source files lib/ash_oban.ex
routines 'Elixir.AshOban':build_trigger/3

Configurations

An application must pass untrusted input into the :args option of AshOban.build_trigger/3 (or an equivalent scheduling helper), on a trigger whose action is an update or destroy, so that an injected primary_key, tenant, or action_arguments retargets the enqueued job.

References

Credits

Peter Ullrich Finder Reporter
Zach Daniel / Ash Project Remediation developer
Jonatan Männchen / EEF Coordinator

CVSS breakdown

CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N
« All CVEs