Refactor and standardize output handling with new utilities in theHarvester.lib.output, add tests for print_linkedin_sections and sorted_unique. Fix regex inaccuracies and enhance CORS validation.

This commit is contained in:
L1ghtn1ng
2026-01-24 11:28:20 +00:00
parent 46865337aa
commit fa2dedd38b
6 changed files with 117 additions and 69 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ class TestCORSConfiguration:
allow_origins = options.get('allow_origins', [])
allow_credentials = options.get('allow_credentials', False)
if '*' in allow_origins:
if isinstance(allow_origins, (list, tuple, set)) and '*' in allow_origins:
assert (
allow_credentials is False
), 'CRITICAL: CORS must not allow credentials with wildcard origins (CVE risk)'