HexBrain

Linux Foundation Decentralized Trust · Report #1763343

Dependency confusion in https://github.com/hyperledger/aries-mobile-agent-react-native

Informativestatus
1upvotes
7 Feb 2023disclosed

How it was found

Hi, I found dependency confusion vulnerability in your aries mobile agent.

The agent is installed through npm which then download thepublic packages required by the application. Those dependencies are defined through the package.json file. I found that your agent depends on the package "aries-bifold" that is not currently present in the public repository; an attacker could upload its malicious package and then gain remote code execution on every target installing the agent. I limited my research on finding the missing package without uploading the "malicious" package on npm because https://github.com/hyperledger/aries-mobile-agent-react-native is not in scope (but is not out-of-scope either), but the methods to exploit this vulnerability are well documented here:

  1. https://dhiyaneshgeek.github.io/web/security/2021/09/04/dependency-confusion/

More about this vulnerability from the researcher who discovered it: 2) https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610

Cheers, r3drush

Impact

Remote code execution to clients installing the agent

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original