You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This scenario seeks to find **Improper Neutralization of Argument Delimiters in a Command**. See `CWE-88<https://cwe.mitre.org/data/definitions/88.html>`_ for more details.
1749
+
1750
+
Let‘s use this `APK<https://github.com/jaiswalakshansh/Vuldroid>`_ and the above APIs to show how the Quark script finds this vulnerability.
1751
+
1752
+
First, we design a detection rule ``ExternalStringsCommands.json`` to spot on behavior using external strings as commands.
1753
+
1754
+
Next, we use Quark API``quarkResultInstance.findMethodInCaller(callerMethod, targetMethod)`` to check ifany APIs in the caller method for string matching.
1755
+
1756
+
If NO, the APK does not neutralize special elements within the argument, which may cause CWE-88 vulnerability.
1757
+
1758
+
If YES, check if there are any delimiters used in string matching for a filter. If NO, the APK does not neutralize special elements within the argument, which may cause CWE-88 vulnerability.
1759
+
1760
+
1761
+
Quark Script CWE-88.py
1762
+
=======================
1763
+
1764
+
The Quark Script below uses Vuldroid.apk to demonstrate.
0 commit comments