logo

Database

Android APK SSL Hostname Not Verified

Description

Detects Android applications that fail to properly verify SSL/TLS hostnames during certificate validation. This vulnerability allows attackers to perform man-in-the-middle attacks by presenting valid certificates for different hostnames, potentially compromising encrypted communications.

Weakness:

060 - Insecure service configuration - Host verification

Category: Functionality Abuse

Detection Strategy

    • Reads the bytecode of the classes whose name contains Activity, without decompiling it

    • Collects the names that this bytecode uses: the class and its parents, its fields, its methods, and the types, methods, fields and texts that its code refers to

    • Reports a vulnerability when one of these names mentions SSLSocket and none mentions getDefaultHostnameVerifier