You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WebpageAnalysis boefje reports the the absence of HSTS on the wrong asset. This is likely caused by the way python requests (and session) work by default. The default behaviour is to follow a Location header before getting the header data and run a report.
To reproduce
Enable WebpageAnalysis
Scan a resource where the first URI provides an HSTS header, but sets a Location to an asset without an HSTS header. In this case, where the security.txt is hosted.
The website does not use HTTP Strict Transport Security (HSTS). HSTS ensures that browsers can only access the website using encryption (HTTPS).
When also enabling the security_txt boefje, we see the content of the url https://www.dopingautoriteit.nl/.well-known/security.txt file being ingested, where it should correctly identify the 404 being returned.
This PR should handle the 404 cases: #2556
The WebpageAnalysis boefje reports the the absence of HSTS on the wrong asset. This is likely caused by the way python requests (and session) work by default. The default behaviour is to follow a Location header before getting the header data and run a report.
To reproduce
Example site:
Expected behavior
I expected the finding to be on the asset "https://www.dopingautoriteit.nl:443/security.txt" in the report.
OpenKAT version
Branch main
Commit 945ba6e
Time of checkout: Dec 21, 2024
Also:
Tag: v1.17.0
The text was updated successfully, but these errors were encountered: