Skip to content

Update avoid-http-usage.yaml#3

Open
geeknik wants to merge 1 commit into
nullenc0de:mainfrom
geeknik:main-2
Open

Update avoid-http-usage.yaml#3
geeknik wants to merge 1 commit into
nullenc0de:mainfrom
geeknik:main-2

Conversation

@geeknik
Copy link
Copy Markdown
Contributor

@geeknik geeknik commented Aug 9, 2023

Changes:

  • Use matchers-condition: and to require both an HTTP match and no HTTPS match
  • Update the HTTP regex to exclude http:// in comments or strings
  • Add a negative HTTPS matcher to check HTTP is used without HTTPS

This makes the template more targeted by requiring HTTP usage without HTTPS to avoid false positives. The extractors stay the same.

Changes:

- Use `matchers-condition: and` to require both an HTTP match and no HTTPS match
- Update the HTTP regex to exclude http:// in comments or strings 
- Add a negative HTTPS matcher to check HTTP is used without HTTPS

This makes the template more targeted by requiring HTTP usage without HTTPS to avoid false positives. The extractors stay the same.
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.

1 participant