Skip to content

Potential fix for code scanning alert no. 1: Incomplete regular expression for hostnames#5

Merged
Lawrence Lucas Large (LukeLarge) merged 1 commit intomainfrom
alert-autofix-1
Dec 4, 2025
Merged

Potential fix for code scanning alert no. 1: Incomplete regular expression for hostnames#5
Lawrence Lucas Large (LukeLarge) merged 1 commit intomainfrom
alert-autofix-1

Conversation

@LukeLarge
Copy link
Collaborator

Potential fix for https://github.com/LukeLarge/contracts/security/code-scanning/1

To resolve this issue, the regex on line 104 should be updated so that all dots in the domain name are escaped, turning certora.com into certora\.com. This ensures that only the desired host is matched (with a literal period), avoiding accidental matches on unintended hostnames. Only the regex on line 104 in lib/openzeppelin-contracts/certora/run.js needs to be updated; no imports or additional code are required.


Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…ssion for hostnames

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Lawrence Lucas Large <162439255+LukeLarge@users.noreply.github.com>
@LukeLarge Lawrence Lucas Large (LukeLarge) marked this pull request as ready for review December 4, 2025 12:45
@LukeLarge Lawrence Lucas Large (LukeLarge) merged commit eb1b4fd into main Dec 4, 2025
7 of 16 checks passed
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