Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Arbitrary code execution fix #1

Merged
JamieSlome merged 1 commit into418sec:masterfrom
B3EF:master
Jan 14, 2021
Merged

Arbitrary code execution fix #1
JamieSlome merged 1 commit into418sec:masterfrom
B3EF:master

Conversation

@B3EF
Copy link

@B3EF B3EF commented Dec 21, 2020

📊 Metadata *

Arbitrary code execution fix

Bounty URL: https://www.huntr.dev/bounties/1-pip-networkx

⚙️ Description *

NetworkX is a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks. This package was vulnerable to Arbitrary code execution via Insecure YAML deserialization due to the use of a known vulnerable function load() in yaml.

💻 Technical Description *

This package was vulnerable to Arbitrary code execution due to the use of a known vulnerable function load() in YAML. Changing that to safe_load or using SafeLoader will fix the issue.

🐛 Proof of Concept (PoC) *

🔥 Proof of Fix (PoF) *

👍 User Acceptance Testing (UAT)

I have just changed the load function to safe_load it ain't going to break anything

Copy link

@mzfr mzfr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link

@mufeedvh mufeedvh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@huntr-helper
Copy link

Congratulations B3EF - your fix has been selected! 🎉

Thanks for being part of the community & helping secure the world's open source code.
If you have any questions, please respond in the comments section, or hit us up on Discord. Your bounty is on its way - keep hunting!

Come join us on Discord

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants