Skip to content

Commit 6c57f1e

Browse files
authored
port 0x24
1 parent 69fd560 commit 6c57f1e

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
platform: android
3+
title: Testing for App Permissions
4+
id: MASTG-TEST-0x24
5+
---
6+
7+
## Overview
8+
Testing for app permissions in Android involves evaluating how an application requests, uses, and manages permissions to ensure they do not lead to security vulnerabilities. Proper permission management should protect sensitive user data and ensure that the application complies with Android's security model. The test aims to detect misconfigurations and unnecessary permissions.
9+
10+
## Steps
11+
12+
**Static analysis**
13+
1. Decompile the APK using tools like @MASTG-TOOL-0011.
14+
2. Examine the `AndroidManifest.xml` file for declared permissions by searching for `<uses-permission` tags.
15+
3. Review the permissions with the developer to identify the purpose of each permission set and remove unnecessary or dangerous permissions.
16+
17+
**Dynamic analysis**
18+
1. Permissions for installed applications can be retrieved with @MASTG-TOOL-0004.
19+
2. Use the @MASTG-TOOL-0004 with the following command :
20+
`$ adb shell dumpsys package sg.vp.owasp_mobile.omtg_android`
21+
22+
Please refer to this [permissions overview ↗](https://developer.android.com/guide/topics/permissions/overview#permission-groups "Table 1. Dangerous permissions and permission groups.") for descriptions of the listed permissions that are considered dangerous.
23+
24+
## Observation
25+
The output shows the list of permissions used by the application.
26+
27+
## Evaluation
28+
The test will fail if the correct permissions are used.

tests/android/MASVS-PLATFORM/MASTG-TEST-0024.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ title: Testing for App Permissions
88
masvs_v1_levels:
99
- L1
1010
- L2
11+
status: deprecated
12+
covered_by: [MASTG-TEST-0x24]
13+
deprecation_note: New version available in MASTG V2
1114
---
1215

1316
## Overview

0 commit comments

Comments
 (0)