Skip to main content

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

CVE-2023-52081

Severity Medium
Score 5.3/10

Summary

Package ffcss is a CLI interface to apply and configure Firefox CSS themes. The function `lookupPreprocess()` is meant to apply some transformations to a string by disabling characters in the regex `[-_ .]`. However, due to the use of late Unicode normalization of type NFKD, it is possible to bypass that validation and re-introduce all the characters in the regex `[-_ .]`. The `lookupPreprocess()` can be easily bypassed with equivalent Unicode characters like `U+FE4D (?)`, which would result in the omitted `U+005F (_)`, for instance. The `lookupPreprocess()` function is only ever used to search for themes loosely (case-insensitively, while ignoring dashes, underscores and dots), so the actual security impact is classified as low. This vulnerability affects github.com/ewen-lbh/ffcss package versions prior to v0.2.1-0.20231017202045-f9c491874b85.

  • LOW
  • NETWORK
  • LOW
  • UNCHANGED
  • NONE
  • NONE
  • NONE
  • NONE

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