Am I affected?

type your ash_paper_trail version to check

Description

Cleartext Storage of Sensitive Information vulnerability in ash-project ash_paper_trail allows an attacker with read access to the generated version resource to recover sensitive values nested inside embedded resources, unions, or lists.

sensitive_attributes :redact and :ignore only act on the tracked resource's top-level attributes. maybe_redact_changes/3 and the stored-action-input path in AshPaperTrail.Resource.Changes.CreateNewVersion derive the sensitive set from the resource's own attributes and never descend into embedded, union, or list values, so a non-sensitive attribute or action argument that holds an embed with a sensitive? field (for example an accepted credentials embed carrying a token) is written to the version table in cleartext.

This issue affects ash_paper_trail: from 0.3.0 before 0.7.0.

Weaknesses & attack patterns

Weakness

CWE-312 · Cleartext Storage of Sensitive Information in catalog → MITRE ↗

Attack patterns

CAPEC-37 · Retrieve Embedded Sensitive Data MITRE ↗

Affected — Hex / ash_paper_trail Hex.pm ↗ Repository ↗

0.3.0 < 0.7.0 affected
every other version: unaffected
cpe cpe:2.3:a:ash-project:ash_paper_trail:*:*:*:*:*:*:*:*
modules · source files · routines
modules 'Elixir.AshPaperTrail.Resource.Changes.CreateNewVersion'
source files lib/resource/changes/create_new_version.ex
routines 'Elixir.AshPaperTrail.Resource.Changes.CreateNewVersion':maybe_redact_changes/3

Affected — GitHub / ash-project/ash_paper_trail Repository ↗

ffe5e03 < 0cd4acf affected
every other version: unaffected
cpe cpe:2.3:a:ash-project:ash_paper_trail:*:*:*:*:*:*:*:*
modules · source files · routines
modules 'Elixir.AshPaperTrail.Resource.Changes.CreateNewVersion'
source files lib/resource/changes/create_new_version.ex
routines 'Elixir.AshPaperTrail.Resource.Changes.CreateNewVersion':maybe_redact_changes/3

Configurations

The resource must version an attribute or accept an action input whose type is an embedded resource, union, or list containing a sensitive? field, with sensitive_attributes set to :redact or :ignore. Exposure requires read access to the generated version resource.

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:H/VI:N/VA:N/SC:N/SI:N/SA:N
« All CVEs