Git Product home page Git Product logo

oshp-validator's People

Contributors

calgarymichael avatar jensskipr avatar righettod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

oshp-validator's Issues

[BUG]: OSHP recommendations are not aligned with OWASP recommendations

Describe the bug
A clear and concise description of what the bug is.

Expected behavior
An alignment between this validator and the OWASP public recommendations.

Screenshots
If applicable, add screenshots to help explain your problem.

See here:
used by OSHP validator: https://raw.githubusercontent.com/OWASP/www-project-secure-headers/master/ci/headers_add.json
OWASP recommendations: https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Headers_Cheat_Sheet.html#recommendation_6

Additional context
Recommendations of OSHP-validator should be aligned with the "official" OWASP recommendations here: https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Headers_Cheat_Sheet.html#recommendation_6

Assertion for `X-Frame-Options` is too rigid

When using this tool against my company's website, I noticed that X-Frame-Options fails unless the header explicitly matches the literal value deny. I think this should be relaxed a bit to also succeed on DENY, as this is a valid option and matches more directly the variable outlined in the original RFC.

Changing this assertion to a ShouldBeIn to succeed on both values would be the best option in my mind. I will go ahead and open a PR to change this assertion

[BUG] Fix quoting of variables in test suite

Describe the bug

Currently the test suite is not a valid YAML file, due to missing quoting of variables.

To Reproduce
Steps to reproduce the behavior:

  1. Go to e.g. https://www.yamllint.com/
  2. Paste test_suite.yml
  3. Click Go button

Expected behavior

In case the file is valid YAML, we can script updates on it to adapt to specific needs while still receiving upstream updates. Also, formatting in IDE seems not to work on an invalid file.

Screenshots
image

Desktop (please complete the following information):
N/A

Smartphone (please complete the following information):
N/A

Additional context
N/A

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.