CVE-2024-28199
Cross-site Scripting (XSS) possible with maliciously formed HTML attribute names and values in Phlex
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
phlex is an open source framework for building object-oriented views in Ruby. There is a potential cross-site scripting (XSS) vulnerability that can be exploited via maliciously crafted user data. This was due to improper case-sensitivity in the code that was meant to prevent these attacks. If you render an `<a>` tag with an `href` attribute set to a user-provided link, that link could potentially execute JavaScript when clicked by another user. If you splat user-provided attributes when rendering any HTML tag, malicious event attributes could be included in the output, executing JavaScript when the events are triggered by another user. Patches are available on RubyGems for all 1.x minor versions. Users are advised to upgrade. Users unable to upgrade should consider configuring a content security policy that does not allow `unsafe-inline`.
Phlex es un framework de código abierto para crear vistas orientadas a objetos en Ruby. Existe una posible vulnerabilidad de secuencias de comandos entre sitios (XSS) que puede explotarse mediante datos de usuario creados con fines malintencionados. Esto se debió a una distinción inadecuada entre mayúsculas y minúsculas en el código destinado a prevenir estos ataques. Si representa una etiqueta `<a rel="nofollow">` con un atributo `href` establecido en un enlace proporcionado por el usuario, ese enlace podría potencialmente ejecutar JavaScript cuando otro usuario haga clic en él. Si agrega atributos proporcionados por el usuario al representar cualquier etiqueta HTML, se podrían incluir atributos de eventos maliciosos en la salida, ejecutando JavaScript cuando los eventos sean activados por otro usuario. Los parches están disponibles en RubyGems para todas las versiones menores 1.x. Se recomienda a los usuarios que actualicen. Los usuarios que no puedan actualizar deben considerar configurar una política de seguridad de contenido que no permita "inseguro en línea".</a>
CVSS Scores
SSVC
- Decision:Track
Timeline
- 2024-03-06 CVE Reserved
- 2024-03-11 CVE Published
- 2024-03-12 EPSS Updated
- 2024-08-02 CVE Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CAPEC
References (4)
URL | Tag | Source |
---|---|---|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy | X_refsource_misc | |
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy#unsafe-inline | X_refsource_misc | |
https://github.com/phlex-ruby/phlex/commit/aa50c604cdee1d0ce7ef068a4c66cbd5d43f96a1 | X_refsource_misc | |
https://github.com/phlex-ruby/phlex/security/advisories/GHSA-242p-4v39-2v8g | X_refsource_confirm |
URL | Date | SRC |
---|
URL | Date | SRC |
---|
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Phlex-ruby Search vendor "Phlex-ruby" | Phlex Search vendor "Phlex-ruby" for product "Phlex" | 1.9.0 Search vendor "Phlex-ruby" for product "Phlex" and version "1.9.0" | en |
Affected
| ||||||
Phlex-ruby Search vendor "Phlex-ruby" | Phlex Search vendor "Phlex-ruby" for product "Phlex" | >= 1.8.0 < 1.8.2 Search vendor "Phlex-ruby" for product "Phlex" and version " >= 1.8.0 < 1.8.2" | en |
Affected
| ||||||
Phlex-ruby Search vendor "Phlex-ruby" | Phlex Search vendor "Phlex-ruby" for product "Phlex" | 1.7.0 Search vendor "Phlex-ruby" for product "Phlex" and version "1.7.0" | en |
Affected
| ||||||
Phlex-ruby Search vendor "Phlex-ruby" | Phlex Search vendor "Phlex-ruby" for product "Phlex" | >= 1.6.0 < 1.6.2 Search vendor "Phlex-ruby" for product "Phlex" and version " >= 1.6.0 < 1.6.2" | en |
Affected
| ||||||
Phlex-ruby Search vendor "Phlex-ruby" | Phlex Search vendor "Phlex-ruby" for product "Phlex" | >= 1.5.0 < 1.5.2 Search vendor "Phlex-ruby" for product "Phlex" and version " >= 1.5.0 < 1.5.2" | en |
Affected
| ||||||
Phlex-ruby Search vendor "Phlex-ruby" | Phlex Search vendor "Phlex-ruby" for product "Phlex" | 1.4.0 Search vendor "Phlex-ruby" for product "Phlex" and version "1.4.0" | en |
Affected
| ||||||
Phlex-ruby Search vendor "Phlex-ruby" | Phlex Search vendor "Phlex-ruby" for product "Phlex" | >= 1.3.0 < 1.3.3 Search vendor "Phlex-ruby" for product "Phlex" and version " >= 1.3.0 < 1.3.3" | en |
Affected
| ||||||
Phlex-ruby Search vendor "Phlex-ruby" | Phlex Search vendor "Phlex-ruby" for product "Phlex" | >= 1.2.0 < 1.2.2 Search vendor "Phlex-ruby" for product "Phlex" and version " >= 1.2.0 < 1.2.2" | en |
Affected
| ||||||
Phlex-ruby Search vendor "Phlex-ruby" | Phlex Search vendor "Phlex-ruby" for product "Phlex" | 1.1.0 Search vendor "Phlex-ruby" for product "Phlex" and version "1.1.0" | en |
Affected
| ||||||
Phlex-ruby Search vendor "Phlex-ruby" | Phlex Search vendor "Phlex-ruby" for product "Phlex" | < 1.0.1 Search vendor "Phlex-ruby" for product "Phlex" and version " < 1.0.1" | en |
Affected
|