Advisory

GHSA-xhvv-3jww-c487

Also known as: CVE-2023-51763

Summary

ActiveAdmin CSV Injection leading to sensitive information disclosure

Details

Impact

In ActiveAdmin versions prior to 3.2.0, maliciously crafted spreadsheet formulas could be uploaded as part of admin data that, when exported to a CSV file and the imported to a spreadsheet program like libreoffice, could lead to remote code execution and private data exfiltration.

The attacker would need privileges to upload data to the same ActiveAdmin application as the victim, and would need the victim to possibly ignore security warnings from their spreadsheet program.

Patches

Versions 3.2.0 and above fixed the problem by escaping any data starting with = and other characters used by spreadsheet programs.

Workarounds

Only turn on formula evaluation in spreadsheet programs when importing CSV after explicitly reviewing the file.

References

https://owasp.org/www-community/attacks/CSV_Injection
https://github.com/activeadmin/activeadmin/pull/8167

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-12-28 18:45 UTC
Modified
2024-02-16 07:59 UTC

Affected packages and fixes

activeadmin

RubyGems · All systems

Affected

  • introduced 0, fixed 3.2.0 (ecosystem)

Fixed versions

3.2.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences