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

Add a new bug check "X-Frame-Options Header Not Set" #371

Closed
aaron-haskins opened this issue Mar 16, 2018 · 1 comment
Closed

Add a new bug check "X-Frame-Options Header Not Set" #371

aaron-haskins opened this issue Mar 16, 2018 · 1 comment

Comments

@aaron-haskins
Copy link

To detect clickjacking vulnerability in Spring Security, we can check if X-Frame-Options header is set:

@Override
protected void configure(HttpSecurity http) throws Exception {
	http
	// ...
	.headers()
		.frameOptions()
			.deny();  // or sameOrigin()

Can such a check be added?

@aaron-haskins
Copy link
Author

Just found that Default Security Headers have:
X-Frame-Options: DENY

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