Opened 9 years ago
Last modified 6 years ago
#5404 review defect
X-Frame-Options for admin/moderator views
Reported by: | Matt Molyneaux | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | programming | Keywords: | |
Cc: | Parent Tickets: |
Description
Currently Mediagoblin doesn't do anything to prevent clickjacking.
Setting X-Frame-Options: SAMEORIGIN
in responses for those views would protect against this attack.
Change History (3)
comment:2 by , 7 years ago
Status: | new → accepted |
---|
comment:3 by , 6 years ago
Status: | accepted → review |
---|
Note:
See TracTickets
for help on using tickets.
Here's a first stab at this using a meddleware class to set
X-Frame-Options = SAMEORIGIN
for all views. A better solution would would probably use decorators to set X-Frame-Options headers on specific views as mentioned in the ticket title.