AutoSpill attack steals passwords from password manager during autofill

Password Managers have become increasingly important to smartphone users as they provide a high level of convenience to users for filling out the information on a web page or application instead of typing out everything.

Additionally, there is no need for users to remember a lot of different account passwords and usernames.

However, a type of credential stealing method has been identified that does not involve any kind of social engineering attacks or malicious code. Threat actors can use legitimate Autofill service options provided by Android to steal credentials from users.

Autofill

Android’s auto-filling process is insecure when using third-party authentication to fill out forms online. Autofill service enables applications to utilize the built-in or external password managers for filling out login forms.

This particular credential-stealing method exists in the Webview controls provided by Android for applications. Webview controls in Android enable applications to render their webview instead of opening the main browser, which gives a seamless experience to users.

Moreover, this Webview also allows applications to have an in-built browser-type process that can also be used for logging in to other websites or applications using the OAuth protocol method, such as Login with Google, Microsoft, etc.

WebView Becomes a Risk

As these apps can provide a third-party authentication inside the webview, the autofill service tries to fill in the information from the password manager using the “Autofill” service.

This service has been discovered to be leaking the credentials to the applications rather than having secure authentication inside the webview.

Webview of Autofill

In other words, if a user uses the webview inside an application and tries to log in using “Login with Google, Microsoft,” etc, the application renders the authentication page and asks for an “Autofill” from the keyboard for filling out the information. 

When this process takes place, the autofill leaks the auto-filling credentials stored inside Android Password Managers to the application that allows the webview. Threat actors can use this method to steal credentials without using any kind of malicious code or phishing attacks.

This research paper was presented in the BlackHat Europe of 2023. This attack was reported to the vendors and patches have been rolled out to the affected versions.

PMNative fields present in (App View)
2111
Both username, passwordOnly usernameOnly passwordOnly none
Google Smart LockU+PU/PU/PU/P
DashlaneU+PU/PU/PU/P
1PasswordU/PU/P
LastPassU+PU/PU/PU/P
EnpassU+PU/PU/PU/P
Keepass2AndroidU+PU/PU/PU/P
KeeperU+PU/PU/PU/P
✗: Autofilling not working at all.U+P: App View accessed and stole both username and passwordU/P: App View accessed both username and password, stole credential of choice
Password Managers that were tested and results (Source: BlackHat Presentation)

For more information on this attack, the presentation from BlackHat Europe provides information about the structure, attack, remediation, and other information.

Update from Enpass

In addition to this, Enpass exclusively reported to Cyber Security News that they have patched this vulnerability as of Enpass version 6.8.3, which was released in September 2022. They also confirmed that the researchers disclosed this vulnerability in early June 2022, which they swiftly acted upon and patched accordingly.

Eswar
Eswar is a Cyber security reporter with a passion for creating captivating and informative content. With years of experience under his belt in Cyber Security, he is reporting data breach, Privacy and APT Threats.