pyLoad is vulnerable to attacks that bypass localhost restrictions, enabling the creation of arbitrary packages
链接: https://github.com/advisories/GHSA-x698-5hjm-w2m5
仓库 Star: 3530
CVSS 评分: 7.5
参考链接:
https://github.com/pyload/pyload/security/advisories/GHSA-x698-5hjm-w2m5
https://github.com/pyload/pyload/commit/f4e2d12416ba2dfac7b036d5c8d6dab5461b9840
描述:
Summary
Any unauthenticated attacker can bypass the localhost restrictions posed by the application and utilize this to create arbitrary packages.
Details
Any unauthenticated attacker can bypass the localhost restrictions posed by the application and utilize this to create arbitrary packages. This is done by changing the Host
header to the value of 127.0.0.1:9666
.
PoC
The application has middleware that prevents access to several routes by checking whether the Host
header has a specific value. We bypassed this restriction.
1 |
|
Below we see that the ‘/flash/add’ endpoint uses the middleware above.
1 |
|
Notice how we are not authorized to access this endpoint when sending a request.
However, if we set the Host
header to be 127.0.0.1:9666
, we notice the request returns success
.
Checking the front end as an admin, we now see that this did indeed succeed.
Impact
An unauthenticated user can perform actions that should only be available to authenticated users.