Clickjacking vulnerability
Reported by harsh0707051mail@gmail.com, chaskar87@gmail.com and https://gitlab.zendesk.com/agent/#/tickets/209.
http://javascript.info/tutorial/clickjacking#x-frame-options
I suggest to solve this by moving the static hosting from S3 to a VPS running nginx.
/cc @marin @sytse @dzaporozhets
Designs
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Owner
Post receive hook triggers build on VPS
- Owner
Sytse must buy SSL certificate for www.gitlab.com from https://www.sslcertificaten.nl/
- Owner
512MB box on Digital Ocean
- Owner
Also see https://dev.gitlab.org/gitlab/gitlabhq/issues/732 for demo.gitlab.com issue.
- Author Contributor
Reported again by https://gitlab.zendesk.com/agent/#/tickets/209.
@sytses might it make sense to start with nginx serving plain HTTP from a DO box? That way we can already address the clickjacking. Adding SSL would be the next step.
- Owner
Good plan, shall I create a 1GB box in New York with your and mine keys?
- Author Contributor
That would be awesome. If you tell me the IP and my key is on the server I can do the migration.
- Author Contributor
https://gitlab.com/gitlab-com/www-gitlab-com/milestones/1
@sytses comment in #4 (closed) when you have activated the DO droplet.
- Owner
Thanks! I've commented there.
- Author Contributor
This has been resolved with
X-Frame-Options DENY
on our current DO server. - username-removed-5302 Status changed to closed
Status changed to closed
- Owner
@jacobvosmaer I'm going to add
add_header X-Frame-Options DENY;
to the config of the Amazon server of https://gitlab.com - Owner
Added to /etc/nginx/sites-available/gitlab
- Author Contributor
@sytse that header is also set in the Rails app itself but I guess (?) it will not hurt to also have it in nginx.
- Owner
@jacobvosmaer OK, I didn't realize that but I also think it also will not hurt.
- Owner
@jacobvosmaer And it might help for static assets (uploads in public dir?).
- Author Contributor
Uploads are on S3 so our nginx settings do not affect those.
- Owner
@jacobvosmaer Makes sense. I could say I want to keep it congruent with our Chef cookbook settings https://gitlab.com/gitlab-org/cookbook-gitlab/merge_requests/8/diffs#71e2308b7d42561ae82d63945d32836620f15cb0_14_14 but that is not really true :-)
- Haydn Mackay mentioned in commit 335707b1
mentioned in commit 335707b1
- Phil Hughes mentioned in commit 6b4e802e
mentioned in commit 6b4e802e
- 🚄 Job van der Voort 🚀 mentioned in issue #656
mentioned in issue #656
- Mark Pundsack mentioned in issue #778 (closed)
mentioned in issue #778 (closed)
- De Wet mentioned in issue #781 (closed)
mentioned in issue #781 (closed)
- Achilleas Pipinellis mentioned in issue marketing#441
mentioned in issue marketing#441
- username-removed-767156 Mentioned in issue #967 (closed)
Mentioned in issue #967 (closed)
- username-removed-767156 mentioned in merge request !4124 (merged)
mentioned in merge request !4124 (merged)
- Joshua Lambert mentioned in issue #1336 (closed)
mentioned in issue #1336 (closed)
- Matija Čupić mentioned in issue #1469
mentioned in issue #1469
- Mike McLaughlin mentioned in merge request !6439 (merged)
mentioned in merge request !6439 (merged)
- username-removed-1411432 mentioned in merge request !6521 (closed)
mentioned in merge request !6521 (closed)
- Dylan Griffith mentioned in commit 4590471e
mentioned in commit 4590471e
- Dylan Griffith mentioned in commit af99cc20
mentioned in commit af99cc20