Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
CVE-2024-28867
Summary
Swift Prometheus is a Swift client for the Prometheus monitoring system, supporting counters, gauges, and histograms. In code that applies un-sanitized string values into metric names or labels, an attacker could make use of this and send a '?lang' query parameter containing newlines, '}' or similar characters which can lead to the attacker taking over the exported format. This includes creating unbounded numbers of stored metrics, inflating server memory usage, or causing "bogus" metrics. This issue affects version 2.0.0-alpha.1.
- HIGH
- NETWORK
- HIGH
- UNCHANGED
- NONE
- NONE
- NONE
- HIGH
CWE-74 - Injection
Listed as the number one web application security risk on the 'OWASP Top Ten', injection attacks are widespread and dangerous, especially in legacy applications. Injection attacks are a class of vulnerabilities in which an attacker injects untrusted data into a web application that gets processed by an interpreter, altering the program's execution. This can result in data loss/theft, loss of data integrity, denial of service, and even compromising the entire system.
References
Advisory Timeline
- Published