-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent access to snapshots except through Amber iframe
If a snapshot is loaded directly, without a surrounding iframe that puts it in a sandbox, the viewer could be at risk of an XSS attack. Prevent this by (a) checking that views of cached content have a referrer header that matches that of the expected containing iframe; and (b) restricting access to the wp-content/uploads/amber directory by placing a restrictive .htaccess fiels in that directory. (#34)
- Loading branch information
Showing
1 changed file
with
70 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters