Dropbox uses vulnerable dependencies, supply chain attacks possible
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- java
- Área
- build-system, security
Línea de trabajo
Comienza por Sharing/ListSharedFolders-pom.xml e inspecciona la dependencia com.opencsv:opencsv:3.4 y su configuración del repositorio. Ejecuta el comando de Maven documentado utilizando únicamente el repositorio local proporcionado en un entorno de pruebas seguro y, después, verifica que el jar generado ya no contenga el artefacto vulnerable reportado tras el cambio de dependencia.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hey,
I wasn't able to report this security vulnerability via the only given channel on BugCrowd. The BugCrowd triage team said that Dropbox OOS isn't in scope and those projects are too old, so such vulnerabilities cannot be reported via that platform. The only place where I can report is here.
Description
This project and dropbox/mypy-pycharm-plugin are vulnerable to MavenGate supply chain attack. There are the following vulnerable dependencies:
Group ID: com.opencsv, domain available for registration: opencsv.com
Group ID: org.ini4j, domain available for registration: ini4j.org (however, this project uses only Maven Central repository, so see comments below)
The attack looks as follows:
- An attacker can take over
groupIdvalues on public repositories because they all require DNS TXT verification (this is verified for MavenCentral, JitPack, and Gradle). This verification is possible when an attacker can purchase the domain. - Additionally, this attack isn't possible automatically for MavenCentral. If the
groupIdvalue is registered in their system, they require manual verification, as they say: "Any future attempts to leverage current and future expired domains will undergo a thorough assessment by our team, ensuring evidence of ownership of not just the domain but also the underlying project". - So now we have all other public repositories left. When the verification is complete, an attacker can upload any artifacts they want to the owned
groupId.
Reproduction Steps
I'm providing an attack example for this project that includes vulnerable com.opencsv:opencsv:3.4. The opencsv.com domain can be purchased:
To avoid purchasing the domain and breaking the CI/CDs of other developers, I created a local repository to demonstrate the attack. So to reproduce the attack using a local repository, do the following:
- Download EVIL_REPO.zip, unzip it, and add its path to the
~/.m2/settings.xml, in my case it looks as follows
<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 http://maven.apache.org/xsd/settings-1.2.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<servers>
</servers>
<localRepository>${user.home}/.m2/repository</localRepository>
<profiles>
<profile>
<id>mainProfile</id>
<repositories>
<repository>
<id>EVIL_REPO</id>
<name>EVIL_REPO</name>
<url>file:///Users/me/Downloads/EVIL_REPO/</url>
</repository>
<repository>
<id>central</id>
<name>central</name>
<url>https://repo.maven.apache.org/maven2/</url>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>mainProfile</activeProfile>
</activeProfiles>
</settings>
git clone https://github.com/dropbox/DropboxBusinessScriptscd DropboxBusinessScripts/Sharingmvn clean compile assembly:single --file ListSharedFolders-pom.xml. The build will generate theDropboxBusinessScripts/Sharing/target/ListSharedFolders-0.0.1-jar-with-dependencies.jarrunnablejarwhich will be poisoned. To verify that, decompile the file or unzip it:
So the conclusion things:
- Injecting the
evil.Evilclass is an example, an attacker can modify sources of this library in any way too. - The root problem of MavenGate is repositories. It's typical to have a few of them when building a project. When an attacker uploads artifacts to a public one that is included in the project (or declared in
~/.m2/settings.xmlin the case of Maven), it will lead to artifact poisoning when attacking dependencies. - The common fix would be avoiding the use of vulnerable dependencies.
- Lenguaje dominante
- Python
- Estrellas
- 40
- Forks
- 19
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Issues similares
-
agent-ready documentation needs-triage
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
-
documentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
-
Add https://search.jeremyh.xyz/ Abiertoinstance instance add
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
searxng/searx-instances#939 · 1 comentario ·
-
area-deployment area-integrations triage:bot-seen
Dificultad 2/5 Medio día Aptitud para principiantes 86/100