CVE-2019-17495

A Cascading Style Sheets (CSS) injection vulnerability in Swagger UI before 3.23.11 allows attackers to use the Relative Path Overwrite (RPO) technique to…

published October 10, 2019

CVSS
—
EPSS
6%
Percentile
93.0
In the wild
Unconfirmed
What it is

⚠️ An unsuspecting CSS attack slips through the cracks! Before version 3.23.11, Swagger UI allows crafty attackers to eavesdrop on sensitive information using a sneaky Relative Path Overwrite technique. 🔥 Think of it like a friendly restaurant waiter who, instead of just taking your order, starts listening in on your conversations with other diners. By exploiting the CSS injection, attackers can capture sensitive inputs right under your nose, just like that waiter stealing your secrets! An attacker could exploit this vulnerability to exfiltrate critical values, such as CSRF tokens, from unsuspecting users. This could lead to unauthorized actions on behalf of users, resulting in potentially devastating consequences for the integrity of your applications.

Put simply

Think of it like a friendly restaurant waiter who, instead of just taking your order, starts listening in on your conversations with other diners. By exploiting the CSS injection, attackers can capture sensitive inputs right under your nose, just like that waiter stealing your secrets! The vulnerability allows malicious CSS to be injected through untrusted JSON data, using the <style>@import method to load external stylesheets that can capture input field values, including CSRF tokens.

What to do

An attacker could exploit this vulnerability to exfiltrate critical values, such as CSRF tokens, from unsuspecting users. This could lead to unauthorized actions on behalf of users, resulting in potentially devastating consequences for the integrity of your applications. Update Swagger UI to version 3.23.11 or later to close this loophole immediately. Review your API security practices to ensure robust validation of JSON data, reducing the risk of similar attacks. 🛡️ You've got this! With these steps, you'll bolster your defenses against sneaky CSS attacks in no time! 🚀

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.05734 · 93.0th percentile
Published
2019-10-10T21:04Z
EPSS history
Timeline
  • 10 OCT 21:04Z
    A Cascading Style Sheets (CSS) injection vulnerability in Swagger UI before 3.23.11 allows attackers to use the Relative Path Overwrite (RPO) technique to…
    cvelistv5