Skip to content

Conversation

@moutonjeremy
Copy link
Member

Potential fix for https://github.com/Labbs/bastion/security/code-scanning/1

The most appropriate, minimal fix is to add a check for the "vbscript:" scheme alongside the checks already present for "javascript:" and others. This should be implemented at line 454, where the other checks are, by including an additional clause: strings.HasPrefix(urlStr, "vbscript:"). This ensures that URLs using the VBScript scheme are not passed through for proxying and are treated as unproxyable, just like the explicitly-blocked others. No new imports or function definitions are necessary.


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

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
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.

2 participants