Debugging enabled in production - APK
Description
The system has debugging enabled in the production environment, which can cause technical information leaks when an error occurs.
Impact
Get technical or sensitive information.
Recommendation
Configure the attribute: application.android:debuggable to false in the file: AndroidManifest.xml.
Threat
Unauthorized attacker from Internet network.
Expected Remediation Time
⌚ minutes.
Score
Default score using CVSS 3.1. It may change depending on the context of the src.
Base
- Attack vector: L
- Attack complexity: H
- Privileges required: N
- User interaction: N
- Scope: U
- Confidentiality: L
- Integrity: N
- Availability: N
Temporal
- Exploit code madurity: X
- Remediation level: O
- Report confidence: X
Result
- Vector string: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N/E:X/RL:O/RC:X
- Score:
- Base: 2.9
- Temporal: 2.8
- Severity:
- Base: Low
- Temporal: Low
Compliant code
The application does not enable debugging in a production environment
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:sharedUserId="android.uid.system" android:versionCode="4" android:versionName="1.0" package="com.android.zerosms">
<uses-permission android:name="android.permission.SEND_SMS"/>
<application android:debuggable="false" android:label="@7F040001" android:icon="@7F020002">
</application>
</manifest>
Non compliant code
The application has debugging enabled on the AndroidManifest
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:sharedUserId="android.uid.system" android:versionCode="4" android:versionName="1.0" package="com.android.zerosms">
<uses-permission android:name="android.permission.SEND_SMS"/>
<application android:debuggable="true" android:label="@7F040001" android:icon="@7F020002">
</application>
</manifest>
Requirements
Fixes
Search for vulnerabilities in your apps for free with our automated security testing! Start your 21-day free trial and discover the benefits of our Continuous Hacking Machine Plan. If you prefer a full service that includes the expertise of our ethical hackers, don't hesitate to contact us for our Continuous Hacking Squad Plan.