The WifiEnterpriseConfig class in net/wifi/WifiEnterpriseConfig.java in Wi-Fi in Android 4.x before 4.4.4, 5.0.x before 5.0.2, 5.1.x before 5.1.1, and 6.x before 2016-09-01 includes a password in the return value of a toString method call, which allows attackers to obtain sensitive information via a crafted application, aka internal bug 25624963.
www.securityfocus.com/bid/92842
www.securitytracker.com/id/1036763
android.googlesource.com/platform/frameworks/base/+/55271d454881b67ff38485fdd97598c542cc2d55
android.googlesource.com/platform/frameworks/base/+/81be4e3aac55305cbb5c9d523cf5c96c66604b39
source.android.com/security/bulletin/2016-09-01.html