Extraction of Pages build scripts, config values, tokens, etc. via symlinks
A malicious Pages build could use symbolic links to read build source, configuration and environment variables because certain folders had broader permissions. The exposed variables were limited to the user's own Pages site data, not other users' data.
- Triaged in 2 days
- Fixed in 4 months
- Paid in 17 days
- Disclosed after 4 months
Summary by the program
Due to a broader permission set on certain folders within the filesystem structure, a malicious Pages build could leverage symlinks to extract build source/configuration and environment variables. While these variables were scoped to allow access to the user's own Pages site data and not the data of others, Cloudflare's Engineering team chose to remediate the issue by tightening permissions on the file system.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely overly broad filesystem permissions on certain folders allowed a build to follow symlinks and read files outside its intended scope.
Impact
A malicious build could read its own site's build source, configuration and environment variables, but the variables were scoped to that user's own Pages data and did not expose other users' data.
What the attacker needed
Ability to run a Pages build
The fix
Cloudflare's Engineering team fixed it by tightening permissions on the file system.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When a service builds your code, it runs in a shared environment with files and settings. A symbolic link is a shortcut that points to another file; if permissions are too loose, a build can follow that shortcut to read files it should not see. Here the attacker could only reach their own site's data, not other customers'.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.