This vulnerability occurs when a software product copies or extracts files while unintentionally preserving insecure permissions from their original source, such as an archive, without the user's knowledge or consent.
When a program extracts files from an archive (like a ZIP or TAR file) or copies them from another location, it often replicates the original file permissions or access rights. If those source permissions are overly permissive—for example, allowing any user to read or modify sensitive files—this insecure configuration is silently carried over to the new system. The user or administrator is typically unaware this has happened, creating a hidden security gap where protected data could be exposed or altered. To prevent this, developers should ensure their file operations explicitly set secure, context-appropriate permissions during extraction or copying, rather than blindly inheriting them. This involves stripping or resetting permissions by default and providing clear logging or user prompts when risky permissions are detected. Implementing these safeguards closes the window where an attacker could exploit preserved access rights from a seemingly harmless file transfer.
Impact: Read Application DataModify Application Data
Strategy: Separation of Privilege