Skip to content

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: [email protected]
  • 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
Original file line number Diff line number Diff line change
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

0 comments on commit fc5b8d9

Please sign in to comment.