https://mathfacts.khanacademy.org/ includes code from unprivileged localhost port
Medium
K
Khan Academy
Submitted None
Actions:
Reported by
hanno
Vulnerability Details
Technical details and impact analysis
The webpage
* https://mathfacts.khanacademy.org/
contains an invalid javascript include at the bottom of the page:
<script src="http://localhost:8021/webpack-dev-server.js"></script>
This is probably some unintended leftover from the development.
In normal situations this will only cause the browser to be unable to connect. But it can actually become a security risk. The port in question (8021) is an unprivileged port, which means on standard operating systems it's possible for every user on the system to run a service on this port.
If you imagine a Desktop computer that is usable by multiple users. One user can run a local service in his account opening this port, thus serving whatever javascript he wants and thus arbitrarily change the appearance of the served webpage for any other user on the same computer.
## Impact
An attacker with user privileges can manipulate the webpage https://mathfacts.khanacademy.org/ for all users using the same computer.
Report Details
Additional information and metadata
State
Closed
Substate
Resolved
Submitted
Weakness
Code Injection