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

WSTG-CONF-14 #1185

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open

WSTG-CONF-14 #1185

wants to merge 43 commits into from

Conversation

websecnl
Copy link

@websecnl websecnl commented Feb 5, 2025

This PR fixes #1172.

  • This PR handles the issue and requires no additional PRs.
  • You have validated the need for this change.

What did this PR accomplish?

Added WSTG-CONF-14 which covers Misconfiguration in HTTP Security Headers, mainly the following:

  • Security Header with a Empty Value
  • Security Header with an invalid value or name (Typos)
  • Overpermissive Security Headers (Allow-Credentials, *)
  • Duplicate Security Headers
  • Legacy Security Headers (which are no longer supported such as HPKP)

Copy link
Collaborator

@kingthorin kingthorin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth adding a note about META tag handling/mistakes? What about duplicate or invalid directives within the header value(s)? (Ex: In CSP, etc)

This comment was marked as outdated.

websecnl and others added 16 commits February 5, 2025 18:53
…nd_Deployment_Management_Testing/14-Test_Other_HTTP_Security_Header_Misconfigurations.md

Co-authored-by: Rick M <kingthorin@users.noreply.github.com>
…nd_Deployment_Management_Testing/14-Test_Other_HTTP_Security_Header_Misconfigurations.md

Co-authored-by: Rick M <kingthorin@users.noreply.github.com>
…nd_Deployment_Management_Testing/14-Test_Other_HTTP_Security_Header_Misconfigurations.md

Co-authored-by: Rick M <kingthorin@users.noreply.github.com>
…nd_Deployment_Management_Testing/14-Test_Other_HTTP_Security_Header_Misconfigurations.md

Co-authored-by: Rick M <kingthorin@users.noreply.github.com>
…nd_Deployment_Management_Testing/14-Test_Other_HTTP_Security_Header_Misconfigurations.md

Co-authored-by: Rick M <kingthorin@users.noreply.github.com>
…nd_Deployment_Management_Testing/14-Test_Other_HTTP_Security_Header_Misconfigurations.md

Co-authored-by: Rick M <kingthorin@users.noreply.github.com>
…nd_Deployment_Management_Testing/14-Test_Other_HTTP_Security_Header_Misconfigurations.md

Co-authored-by: Rick M <kingthorin@users.noreply.github.com>
…nd_Deployment_Management_Testing/14-Test_Other_HTTP_Security_Header_Misconfigurations.md

Co-authored-by: Rick M <kingthorin@users.noreply.github.com>
…nd_Deployment_Management_Testing/14-Test_Other_HTTP_Security_Header_Misconfigurations.md

Co-authored-by: Rick M <kingthorin@users.noreply.github.com>
…nd_Deployment_Management_Testing/14-Test_Other_HTTP_Security_Header_Misconfigurations.md

Co-authored-by: Rick M <kingthorin@users.noreply.github.com>
…nd_Deployment_Management_Testing/14-Test_Other_HTTP_Security_Header_Misconfigurations.md

Co-authored-by: Rick M <kingthorin@users.noreply.github.com>
…nd_Deployment_Management_Testing/14-Test_Other_HTTP_Security_Header_Misconfigurations.md

Co-authored-by: Rick M <kingthorin@users.noreply.github.com>
…nd_Deployment_Management_Testing/14-Test_Other_HTTP_Security_Header_Misconfigurations.md

Co-authored-by: Rick M <kingthorin@users.noreply.github.com>

This comment was marked as resolved.

…nd_Deployment_Management_Testing/14-Test_Other_HTTP_Security_Header_Misconfigurations.md

Co-authored-by: Rick M <kingthorin@users.noreply.github.com>
@websecnl
Copy link
Author

websecnl commented Feb 8, 2025

Is it worth adding a note about META tag handling/mistakes? What about duplicate or invalid directives within the header value(s)? (Ex: In CSP, etc)

As for invalid directives this has already been added.

Aren't META-tags not really related to Headers, please correct me if i'm wrong?

Moved Test Objectives before Common Security Header Misconfigurations
@kingthorin
Copy link
Collaborator

There are a number of headers or header behaviours that can be implemented as http-equiv meta tags. Similarly there are some headers/directives that specifically cannot be used in metas.

That being said now that you have me writing this I think we have another section in info leaks via metas so it could also be mentioned there.

@websecnl
Copy link
Author

websecnl commented Feb 8, 2025

That being said now that you have me writing this I think we have another section in info leaks via metas so it could also be mentioned there.

Ah the meta http-equiv , Gotcha.
No, I think you are right and these should be mentioned in this.

I will update the text and give you another message once i wrote about it, this makes sense.

Thanks for mentioning it!

…nd_Deployment_Management_Testing/14-Test_Other_HTTP_Security_Header_Misconfigurations.md
…nd_Deployment_Management_Testing/14-Test_Other_HTTP_Security_Header_Misconfigurations.md
…nd_Deployment_Management_Testing/14-Test_Other_HTTP_Security_Header_Misconfigurations.md
…nd_Deployment_Management_Testing/14-Test_Other_HTTP_Security_Header_Misconfigurations.md
…nd_Deployment_Management_Testing/14-Test_Other_HTTP_Security_Header_Misconfigurations.md
…nd_Deployment_Management_Testing/14-Test_Other_HTTP_Security_Header_Misconfigurations.md

This comment was marked as outdated.

This comment was marked as resolved.

This comment was marked as resolved.

@kingthorin
Copy link
Collaborator

kingthorin commented Feb 24, 2025

Okay all the linting etc is finally fixed. Thanks lease make sure I don’t accidentally remove any content (I had dropped a paragraph at one point , though I think that was an issue with GitHub parsing suggestions that contain code blocks).

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

Successfully merging this pull request may close these issues.

WSTG-CONF-XX - Security Header Misconfiguration
2 participants