Dangling PIP Package Usage in github repository "github.com/mozilla-services/syncstorage-loadtest"
Categories
(Cloud Services Graveyard :: Server: Sync, enhancement)
Tracking
(Not tracked)
People
(Reporter: arshadkazmi42, Assigned: pjenvey)
Details
(Keywords: reporter-external, sec-low, wsec-takeover, Whiteboard: [reporter-external] [web-bounty-form] [verif?])
Summary
Mozilla have a github repository https://github.com/mozilla-services/syncstorage-loadtest
In the repository there is a requirements.txt file which is using a pip package.
The package is not available on pip store which makes it vulnerable to takeover.
Steps
- Go to https://github.com/mozilla-services/syncstorage-loadtest/blob/master/requirements.txt#L7
- You will see this package
aiomeasuresgetting used at line 7. - Try checking the package on pip repository using this url https://pypi.org/project/aiomeasures/
- You will see a 404 page, which means the package is not avaialble on the pip repository and can be taken over.
PoC
- https://github.com/mozilla-services/syncstorage-loadtest/blob/master/requirements.txt#L7
- https://pypi.org/project/aiomeasures/
Impact
An attacker can takeover the package and host malicious code in it, which could cause RCE when the project will be build.
Updated•4 years ago
|
Comment 1•4 years ago
|
||
Hello Arshad,
Thank you for your report. I'll check with the team responsible to look into this.
Thanks,
Frida
Comment 2•4 years ago
|
||
Hello JR,
I see that you are the last contributor to this repo, https://github.com/mozilla-services/syncstorage-loadtest. Can you please take a look at this report?
Thanks,
Frida
Comment 3•4 years ago
|
||
I've confirmed with :pjenvey that while this package is still in limited use, it's mostly run by hand for load testing syncstorage-rs. It appears that the dangling library isn't used, so we can remove it. This package is not part of any automated testing.
| Assignee | ||
Updated•4 years ago
|
Comment 4•4 years ago
|
||
Updated•4 years ago
|
| Reporter | ||
Comment 5•4 years ago
|
||
I have verified the fix, the repository has been updated and the dangling package has been removed
Updated•4 years ago
|
Comment 6•4 years ago
|
||
:pjenvey, Thanks very much for the report. Tom will coordinate with you on payment of the bounty award.
Comment 7•4 years ago
|
||
I've also squatted the pip package https://pypi.org/project/aiomeasures/
| Reporter | ||
Comment 8•4 years ago
|
||
Thank you for the bounty :gene
I have verified the fix the pip package is squatted now with details about correct location of the package.
Updated•4 years ago
|
Updated•4 years ago
|
Updated•3 years ago
|
Updated•2 years ago
|
Description
•