Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
🔒 [SECURITY] Fix XSS vulnerability in mod_netstat
Browse files Browse the repository at this point in the history
If you're reading this, you might be worried.
An attacker would have also needed to spoof your DNS records and your SSL root certificate store to succesfully inject code into your client.

If still believe you might be at risk, shoot me an email: gabriel@saillard.dev
  • Loading branch information
GitSquared committed Apr 30, 2019
1 parent eddc810 commit fc5b8d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/netstat.class.js
Expand Up @@ -100,7 +100,7 @@ class Netstat {
delete this.ipinfo.api_version;
delete this.ipinfo.time;
let ip = this.ipinfo.ip;
document.querySelector("#mod_netstat_innercontainer > div:nth-child(2) > h2").innerHTML = ip;
document.querySelector("#mod_netstat_innercontainer > div:nth-child(2) > h2").innerHTML = window._escapeHtml(ip);
} catch(e) {
console.warn(e);
console.info(rawData.toString());
Expand Down

1 comment on commit fc5b8d9

@unixfox
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.