Closed Bug 1784602 Opened 4 years ago Closed 4 years ago

Dangling PIP Package Usage in github repository "github.com/mozilla-services/syncstorage-loadtest"

Categories

(Cloud Services Graveyard :: Server: Sync, enhancement)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

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

  1. Go to https://github.com/mozilla-services/syncstorage-loadtest/blob/master/requirements.txt#L7
  2. You will see this package aiomeasures getting used at line 7.
  3. Try checking the package on pip repository using this url https://pypi.org/project/aiomeasures/
  4. You will see a 404 page, which means the package is not avaialble on the pip repository and can be taken over.

PoC

Impact

An attacker can takeover the package and host malicious code in it, which could cause RCE when the project will be build.

Flags: sec-bounty?
Type: task → enhancement
Component: Other → Server: Sync
Product: Websites → Cloud Services

Hello Arshad,

Thank you for your report. I'll check with the team responsible to look into this.

Thanks,
Frida

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

Flags: needinfo?(jrconlin)

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.

Flags: needinfo?(jrconlin)
Assignee: nobody → pjenvey
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

I have verified the fix, the repository has been updated and the dangling package has been removed

Flags: sec-bounty? → sec-bounty+

:pjenvey, Thanks very much for the report. Tom will coordinate with you on payment of the bounty award.

I've also squatted the pip package https://pypi.org/project/aiomeasures/

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.

Group: websites-security
Product: Cloud Services → Cloud Services Graveyard
You need to log in before you can comment on or make changes to this bug.