Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-634p-93h9-92vh

Опубликовано: 16 сент. 2022
Источник: github
Github: Прошло ревью
CVSS3: 5.8

Описание

ghas-to-csv vulnerable to Improper Neutralization of Formula Elements in a CSV File

Impact

This GitHub Action creates a CSV file without sanitizing the output of the APIs. If an alert is dismissed or any other custom field contains executable code / formulas, it might be run when an endpoint opens that CSV file in a spreadsheet program. The data flow looks like this 👇🏻

graph TD A(Repository) -->|developer dismissal, other data input| B(GitHub Advanced Security data) B -->|ghas-to-csv| C(CSV file) C -->|spreadsheet program| D(endpoint executes potentially malicious code)

Patches

Please use version v1 or later. That tag moves from using csv to defusedcsv to mitigate this problem.

Workarounds

There is no workaround. Please upgrade to using the latest tag, v1 (or later).

References

  • CWE-1236 information from MITRE
  • CSV injection information from OWASP
  • CodeQL query for CWE-1236 in Python here
  • PyPI site for defusedcsv here

For more information

If you have any questions or comments about this advisory:

  • Open an issue in this repository here

Пакеты

Наименование

some-natalie/ghas-to-csv

actions
Затронутые версииВерсия исправления

< 1

1

EPSS

Процентиль: 60%
0.00401
Низкий

5.8 Medium

CVSS3

Дефекты

CWE-1236
CWE-74

Связанные уязвимости

CVSS3: 5.8
nvd
больше 3 лет назад

some-natalie/ghas-to-csv (GitHub Advanced Security to CSV) is a GitHub action which scrapes the GitHub Advanced Security API and shoves it into a CSV. In affected versions this GitHub Action creates a CSV file without sanitizing the output of the APIs. If an alert is dismissed or any other custom field contains executable code / formulas, it might be run when an endpoint opens that CSV file in a spreadsheet program. This issue has been addressed in version `v1`. Users are advised to use `v1` or later. There are no known workarounds for this issue.

EPSS

Процентиль: 60%
0.00401
Низкий

5.8 Medium

CVSS3

Дефекты

CWE-1236
CWE-74