Technical Analysis of "Deleted Data Stored Permanently on Instagram: Facebook Bug Bounty 2020"
Overview:
The provided write-up dissects a critical flaw in Facebook's handling of user data on Instagram, where deleted private messages, photos, and other content were retained indefinitely on Facebook's servers. This analysis highlights the discovery, technical processes involved, and the security implications of retaining ostensibly deleted user data.
Key Technical Details:
-
Discovery Phase: The vulnerability was identified by a security researcher who initiated an extended investigation into the behavior of Instagram's 'Download Your Information' (DYI) feature. The researcher noted discrepancies where so-called deleted content was retrievable even after deletion.
-
DYI Feature Analysis:
- Functionality: Instagram's DYI feature allows users to request all their account data. The feature is presumed to provide comprehensive and accurate data, including active and inactive (deleted) data.
-
Observation: Upon requesting his data, the researcher observed that previously deleted content reappeared in the dataset provided by the DYI tool.
-
Retained Content: The researcher identified that old, deleted direct messages (DMs), photos, and other media were present in the download. This contradicts the expectation that such content would be permanently removed from all Instagram servers within a specified period after deletion.
-
Deleted DM Recovery: The downloaded information included private messages and photos that had been deleted over a year prior to the data request.
-
Deleted Media Recovery: Similarly, photos and videos that had been deleted were also present in the DYI data dump.
-
Discrepancy in Data Deletion Policies:
- Data Deletion Policies: According to Facebook and Instagram's official data retention policies, deleted data should be removed completely from servers within a fixed timeframe, typically 90 days.
-
Compliance Issue: The presence of long-deleted data indicated non-compliance with these policies, pointing towards a systemic issue in data deletion processes.
-
Responsible Disclosure: The researcher reported the finding to Facebook's bug bounty program:
- Response: Facebook acknowledged the issue and worked on a fix. The researcher was awarded a bounty for the valid and impactful report.
-
Fix Implementation: Facebook assured that the bug was rectified and improvements made to ensure the deletion policies were correctly enacted.
-
Technical Takeaways:
- Data Retention Verification: Platforms must implement rigorous verification mechanisms to confirm that deletion processes work as intended and data is irreversibly removed.
- Auditable Deletion Processes: Regular audits and providing transparent, auditable logs on data deletion processes can help in maintaining compliance and trust.
-
User Rights and Data Management: This issue underscores the importance of adhering to data privacy guidelines and user rights regarding data management, especially under frameworks like GDPR.
-
Security Implications:
- User Privacy: Retention of deleted data represents a significant privacy risk, potentially exposing sensitive information beyond intended retention periods.
-
Legal and Compliance Risk: Non-compliance with publicly stated data deletion policies can attract regulatory scrutiny and legal challenges, especially in regions with stringent data protection laws.
-
Recommendations for Developers and Security Teams:
- Enhanced Monitoring: Implement robust monitoring and logging of deletion requests to track their execution across distributed systems.
- Data Purging Protocols: Develop secure and verifiable data purging protocols that ensure data is completely removed from all storage layers, including backups.
- Regular Testing: Conduct regular pentesting focused on data retention mechanisms and verify the effective deletion of user data.
Conclusion:
This detailed analysis underlines the complexity and responsibility associated with data handling in large platforms like Instagram. The incident revealed substantial gaps in data deletion processes, demonstrating a critical lesson for data custodians about the importance of thorough and transparent data management practices to maintain user trust and regulatory compliance. Platforms must guarantee that user data deletion requests are honored not just in principle, but effectively in practice.
For full details, refer to the original write-up here.