Open zachriggle opened 7 years ago
It looks like the runCommand escaping is quite naive, and will pass along special characters without escaping.
As an example:
cd mount-point echo Hello > '$(touch /data/local/tmp/hello)' rm '$(touch /data/local/tmp/hello)'
Should propagate to the ADB protocol command:
shell:"$(touch /data/local/tmp/hello)"
Which allows arbitrary command execution.
Nice catch! Unfortunately I don't know when I'll have time to fix this.
It looks like the runCommand escaping is quite naive, and will pass along special characters without escaping.
As an example:
Should propagate to the ADB protocol command:
Which allows arbitrary command execution.