Netdata before 2.3.1 reflects the user-supplied love query parameter of the api/v2/ilove.svg and api/v3/ilove.svg endpoints verbatim into the generated SVG document (into a text element) without HTML or XML escaping, and serves the response with Content-Type image/svg+xml. An attacker can craft a URL such as /api/v2/ilove.svg?love=<script>...</script>; when a victim navigates to it the injected script executes in the victim browser in the origin of the Netdata instance (reflected cross-site scripting). These endpoints are registered with HTTPACLNOCHECK and anonymous access and, because bearer-token protection is disabled by default, are reachable without authentication on a default Netdata agent. The issue was resolved by removing the ilove endpoint.
{
"binaries": [
{
"binary_name": "netdata",
"binary_version": "1.19.0-3ubuntu1+esm1"
},
{
"binary_name": "netdata-apache2",
"binary_version": "1.19.0-3ubuntu1+esm1"
},
{
"binary_name": "netdata-core",
"binary_version": "1.19.0-3ubuntu1+esm1"
},
{
"binary_name": "netdata-plugins-bash",
"binary_version": "1.19.0-3ubuntu1+esm1"
},
{
"binary_name": "netdata-plugins-nodejs",
"binary_version": "1.19.0-3ubuntu1+esm1"
},
{
"binary_name": "netdata-plugins-python",
"binary_version": "1.19.0-3ubuntu1+esm1"
},
{
"binary_name": "netdata-web",
"binary_version": "1.19.0-3ubuntu1+esm1"
}
]
}
{
"binaries": [
{
"binary_name": "netdata",
"binary_version": "1.33.1-1ubuntu1+esm1"
},
{
"binary_name": "netdata-apache2",
"binary_version": "1.33.1-1ubuntu1+esm1"
},
{
"binary_name": "netdata-core",
"binary_version": "1.33.1-1ubuntu1+esm1"
},
{
"binary_name": "netdata-plugins-bash",
"binary_version": "1.33.1-1ubuntu1+esm1"
},
{
"binary_name": "netdata-plugins-nodejs",
"binary_version": "1.33.1-1ubuntu1+esm1"
},
{
"binary_name": "netdata-plugins-python",
"binary_version": "1.33.1-1ubuntu1+esm1"
},
{
"binary_name": "netdata-web",
"binary_version": "1.33.1-1ubuntu1+esm1"
}
]
}
{
"binaries": [
{
"binary_name": "netdata",
"binary_version": "1.43.2-1build2"
},
{
"binary_name": "netdata-apache2",
"binary_version": "1.43.2-1build2"
},
{
"binary_name": "netdata-core",
"binary_version": "1.43.2-1build2"
},
{
"binary_name": "netdata-plugins-bash",
"binary_version": "1.43.2-1build2"
},
{
"binary_name": "netdata-plugins-python",
"binary_version": "1.43.2-1build2"
},
{
"binary_name": "netdata-web",
"binary_version": "1.43.2-1build2"
}
]
}