Skip to content

Potential log injection in reset user endpoint in CKAN

Moderate severity GitHub Reviewed Published Mar 13, 2024 in ckan/ckan • Updated Mar 13, 2024

Package

pip ckan (pip)

Affected versions

< 2.9.11
>= 2.10.0, < 2.10.4

Patched versions

2.9.11
2.10.4

Description

A user endpoint didn't perform filtering on an incoming parameter, which was added directly to the application log. This could lead to an attacker injecting false log entries or corrupt the log file format.

Patches

This has been fixed in the CKAN 2.9.11 and 2.10.4 versions

Workarounds

Override the /user/reset endpoint to filter the id parameter in order to exclude newlines

References

@amercader amercader published to ckan/ckan Mar 13, 2024
Published to the GitHub Advisory Database Mar 13, 2024
Reviewed Mar 13, 2024
Published by the National Vulnerability Database Mar 13, 2024
Last updated Mar 13, 2024

Severity

Moderate
4.3
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

CVE ID

CVE-2024-27097

GHSA ID

GHSA-8g38-3m6v-232j

Source code

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.