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
Copy file name to clipboardExpand all lines: CWE-94/README.md
+28-28Lines changed: 28 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -1,57 +1,55 @@
1
1
# Detect CWE-94 in Android Application
2
2
3
+
This scenario seeks to find **code injection** in the APK file.
3
4
4
-
This scenario seeks to find **code injection** in the APK file.
5
-
6
-
## CWE-94 Improper Control of Generation of Code
5
+
## CWE-94: Improper Control of Generation of Code
7
6
8
7
We analyze the definition of CWE-94 and identify its characteristics.
9
8
10
-
See [CWE-94](https://cwe.mitre.org/data/definitions/94.html) for more
11
-
details.
9
+
See [CWE-94](https://cwe.mitre.org/data/definitions/94.html) for more details.
12
10
13
-

11
+

14
12
15
13
## Code of CWE-94 in ovaa.apk
16
14
17
-
We use the [ovaa.apk](https://github.com/oversecured/ovaa) sample to
18
-
explain the vulnerability code of CWE-94.
15
+
We use the [ovaa.apk](https://github.com/oversecured/ovaa) sample to explain the vulnerability code of CWE-94.
19
16
20
-

17
+

21
18
22
-
## Quark Script: CWE-94.py
19
+
## CWE-94 Detection Process Using Quark Script API
20
+
21
+
Let's use the above APIs to show how the Quark script finds this vulnerability.
23
22
24
-
Let\'s use the above APIs to show how the Quark script finds this
25
-
vulnerability.
23
+
First, we design a detection rule ``loadExternalCode.json`` to spot on behavior using the method ``createPackageContext``. Then, we find the caller method that calls the ``createPackageContext``. Finally, we check if the method ``checkSignatures`` is called in the caller method for verification.
26
24
27
-
First, we design a detection rule `loadExternalCode.json` to spot on
28
-
behavior using the method `createPackageContext`. Then, we find the
29
-
caller method that calls the `createPackageContext`. Finally, we check
30
-
if the method `checkSignatures` is called in the caller method for
0 commit comments