{"id":38,"date":"2021-12-30T22:23:50","date_gmt":"2021-12-30T22:23:50","guid":{"rendered":"https:\/\/cybersecurityinfocus.com\/?p=38"},"modified":"2021-12-30T22:23:50","modified_gmt":"2021-12-30T22:23:50","slug":"whatsapp-for-android-retains-deleted-contacts-locally","status":"publish","type":"post","link":"https:\/\/cybersecurityinfocus.com\/?p=38","title":{"rendered":"WhatsApp for Android Retains Deleted Contacts Locally"},"content":{"rendered":"<h2 class=\"wp-block-heading\">Summary<\/h2>\n<p>WhatApp for Android retains contact info locally after contacts get deleted. This would allow an attacker with physical access to the device to check if the WhatsApp user had interactions with specific contacts, even though they have been deleted.<\/p>\n<h2 class=\"wp-block-heading\">Vulnerability Details<\/h2>\n<p>When a contact is deleted on WhatsApp, their information about security code changes is retained (while the chat content is not). The only way to get rid of that is to select \u201cClear Chat\u201d for the contact before deleting it. Even deleting the chat itself doesn\u2019t do it unless the \u201cClear Chat\u201d operation is done first. <a href=\"https:\/\/faq.whatsapp.com\/general\/security-and-privacy\/security-code-change-notification\/?lang=en\">The \u201csecurity code change notifications\u201d option<\/a> must be enabled in order for this to work.<\/p>\n<p>Someone getting access to the user\u2019s device can figure out whether they ever chatted with specific contacts, even if those contacts and their chats are no longer on the device. This is a privacy issue \u2013 especially for people like journalists and those living in dangerous countries.<\/p>\n<p>Since WhatsApp uses Android\u2019s contact app for contact information but supports chats with numbers that aren\u2019t contacts, our theory is that the application retains information about security code changes even for contacts no longer on the device. There seems to be a discrepancy between how the \u201cClear chat\u201d option and \u201cDelete Chat\u201d options are implemented in the application, with the first option deleting security notification data.<\/p>\n<p>To reproduce:<\/p>\n<p>Delete a chat with a contact that had security code changes before.Delete the contact from the device via the Android Contacts app.Re-add contact to the device via the Android Contacts app.Start a new chat in WhatsApp with that contact but do not send any messages.Observe that security code changes are listed with dates in the chat.Select \u201cClear Chat\u201d to remove the security code changes, and repeat sterps 1-4. Observe that the security code changes no longer appear.<\/p>\n<p>Tested on WhatsApp for Android, app version 2.21.20.20, running on Android 12.<\/p>\n<h2 class=\"wp-block-heading\">Vendor Response<\/h2>\n<p>We haven\u2019t retested on a more recent version but our recommendation to users is to use the \u201cClear Chat\u201d option in order to prevent this. <\/p>\n<p>The vendor will not be fixing this issue, here is their response:<\/p>\n<p><em>As part of the attack scenario you describe getting access to a person\u2019s WhatsApp account to obtain private data, as you mention yourself, people do have a way to remove these messages from their account, if a bad actor gets access to their WhatsApp account prior to that person deleting that information then they will be able to view this information. As such, we are closing this report.<\/em><\/p>\n<h2 class=\"wp-block-heading\">References<\/h2>\n<p>CWE: <a href=\"https:\/\/cwe.mitre.org\/data\/definitions\/212.html\">CWE-212 \u2013 Improper Removal of Sensitive Information Before Storage or Transfer<\/a><\/p>\n<p>Facebook # 10102482597361835<\/p>\n<h2 class=\"wp-block-heading\">Timeline<\/h2>\n<p>2021-10-24: Initial report sent to the vendor, report ID assigned<br \/>2021-10-27: Vendor asks for more info, additional info and screenshots sent<br \/>2021-11-03: Vendor sent interim status report, still investigating<br \/>2021-11-09: Vendor rejects the vulnerability and closes the report<br \/>2021-12-30: Public disclosure<\/p>","protected":false},"excerpt":{"rendered":"<p>Summary WhatApp for Android retains contact info locally after contacts get deleted. This would allow an attacker with physical access to the device to check if the WhatsApp user had interactions with specific contacts, even though they have been deleted. Vulnerability Details When a contact is deleted on WhatsApp, their information about security code changes [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":39,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-38","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"_links":{"self":[{"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=\/wp\/v2\/posts\/38"}],"collection":[{"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=38"}],"version-history":[{"count":0,"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=\/wp\/v2\/posts\/38\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=\/wp\/v2\/media\/39"}],"wp:attachment":[{"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}