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

No hint when only using legacy security.txt location #1510

Open
janwillemstegink opened this issue Sep 20, 2024 · 2 comments
Open

No hint when only using legacy security.txt location #1510

janwillemstegink opened this issue Sep 20, 2024 · 2 comments

Comments

@janwillemstegink
Copy link

https://en.internet.nl/site/metaregistrar.com/2964873/

image

https://www.hostingtool.nl/server_headers/index.php?url=metaregistrar.com

image

@bwbroersma bwbroersma changed the title in case of a 404 for /.well-known/security.txt, then a retrieved legacy security.txt will be colored blue, although not really from the correct location No hint when only using legacy security.txt location Sep 20, 2024
@bwbroersma
Copy link
Collaborator

bwbroersma commented Sep 20, 2024

Example report with ✅ security.txt and no ℹ️ informational hint about using legacy: https://internet.nl/site/legacy-sectxt.broersma.com/2965249/#siteappsecpriv
In this case there only is content on the legacy location /security.txt (https://legacy-sectxt.broersma.com/security.txt) while /.well-known/security.txt is a 404 (https://legacy-sectxt.broersma.com/.well-known/security.txt).

Related:

  • This was discussed earlier in a legacy security.txt can be easily be clearer #1084 (comment):
    RFC 9116 states:

    3. Location of the security.txt File

    For web-based services, organizations MUST place the "security.txt" file under the "/.well-known/" path, e.g., https://example.com/.well-known/security.txt as per [RFC8615] of a domain name or IP address. For legacy compatibility, a "security.txt" file might be placed at the top-level path or redirect (as per Section 6.4 of [RFC7231]) to the "security.txt" file under the "/.well-known/" path. If a "security.txt" file is present in both locations, the one in the "/.well-known/" path MUST be used.

    So the legacy location MUST be ignored it's also found in "/.well-known/", therefore I don't think we should do compares (also quite complex, the content could also be 'the same' but ordered differently). I would tend to agree a legacy location could give an ℹ️ informational.

@janwillemstegink
Copy link
Author

Eg. ah.nl: Extra information of a legacy security.txt that can easily be redirected to the .well-known security.txt

https://www.hostingtool.nl/server_headers/index.php?url=ah.nl
image

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

No branches or pull requests

2 participants