Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Passmarked] jmd suggested a edit #6

Open
passmarkedbot opened this issue Apr 4, 2018 · 0 comments
Open

[Passmarked] jmd suggested a edit #6

passmarkedbot opened this issue Apr 4, 2018 · 0 comments

Comments

@passmarkedbot
Copy link

A edit was suggested from the library page - https://passmarked.com/library/security/http/frameoptions.missing.

The documentation of the rule should be in docs/frameoptions.missing.md

The suggested content is:

Clickjacking attacks happen when your site is loaded within an IFrame and the attacker has control over your input by layering over it.
This HTTP header configures whether your site may be loaded in an IFrame or not.

The recommended value:

X-Frame-Options: SAMEORIGIN

// or

X-Frame-Options: DENY

// or

X-Frame-Options: ALLOW-FROM http://passmarked.com

`SAMEORIGIN` instructs that you may frame your own site while `DENY` says that it may not be framed at all. 
You may allow specific sites to frame you by using `ALLOW-FROM`.

# How do I fix this ?

Although you may set http headers in your application code it is often simpler to configure the web server to set it properly.

// nginx
add_header X-Frame-Options SAMEORIGIN;

// apache

Header set X-Frame-Options: SAMEORIGIN


# Resources

* https://www.owasp.org/index.php/Clickjacking_Defense_Cheat_Sheet
* https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options

User agent of user: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant