🔍 CVE-2024-32876

8.5
CVSS Score
HIGH
2024-04-24
2026-06-17 07:30
✅ 완료

🇰🇷 한글 설명

NewPipe 안드로이드 앱의 백업 가져오기 기능에서 Java 객체 역직렬화 취약점이 발견되었습니다. 공격자가 조작된 백업 파일을 통해 사용자의 기기에서 임의의 코드를 실행할 수 있습니다.

💡 쉬운 설명

앱의 데이터를 옮기기 위해 백업 파일을 불러올 때, 악성 코드가 숨겨진 파일을 불러오면 해커가 내 휴대폰을 조종할 수 있는 문제입니다. 신뢰할 수 없는 곳에서 받은 백업 파일은 절대 사용하면 안 됩니다.

🇺🇸 원문 (English)

NewPipe is an Android app for video streaming written in Java. It supports exporting and importing backups, as a way to let users move their data to a new device effortlessly. However, in versions 0.13.4 through 0.26.1, importing a backup file from an untrusted source could have resulted in Arbitrary Code Execution. This is because backups are serialized/deserialized using Java's Object Serialization Stream Protocol, which can allow constructing any class in the app, unless properly restricted. To exploit this vulnerability, an attacker would need to build a backup file containing the exploit, and then persuade a user into importing it. During the import process, the malicious code would be executed, possibly crashing the app, stealing user data from the NewPipe app, performing nasty actions through Android APIs, and attempting Android JVM/Sandbox escapes through vulnerabilities in the Android OS. The attack can take place only if the user imports a malicious backup file, so an attacker would need to trick a user into importing a backup file from a source they can control. The implementation details of the malicious backup file can be independent of the attacked user or the device they are being run on, and do not require additional privileges. All NewPipe versions from 0.13.4 to 0.26.1 are vulnerable. NewPipe version 0.27.0 fixes the issue by doing the following: Restrict the classes that can be deserialized when calling Java's Object Serialization Stream Protocol, by adding a whitelist with only innocuous data-only classes that can't lead to Arbitrary Code Execution; deprecate backups serialized with Java's Object Serialization Stream Protocol; use JSON serialization for all newly created backups (but still include an alternative file serialized with Java's Object Serialization Stream Protocol in the backup zip for backwards compatibility); show a warning to the user when attempting to import a backup where the only available serialization mode is Java's Object Serialization Stream Protocol (note that in the future this serialization mode will be removed completely).

📍 영향받는 시스템

NewPipe versions 0.13.4 through 0.26.1

⚔️ 공격 벡터

사용자가 공격자가 제작한 악성 백업 파일을 앱에 가져오기(Import)하도록 유도함

🛡️ 대응 방법

NewPipe 앱을 최신 버전인 0.27.0 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전 번호가 0.27.0 미만인 경우 취약한 상태입니다.

Shell / Script
adb shell pm list packages | grep org.schabi.newpipe && adb shell dumpsys package org.schabi.newpipe | grep versionName

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:L

💻 영향받는 소프트웨어

Spring Data REST