Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Potential fix for code scanning alert no. 1: Incomplete URL scheme check#5

Draft
moutonjeremy wants to merge 1 commit into
main from
alert-autofix-1
Draft

Potential fix for code scanning alert no. 1: Incomplete URL scheme check #5
moutonjeremy wants to merge 1 commit into
main from
alert-autofix-1

Conversation

@moutonjeremy

@moutonjeremy moutonjeremy commented Nov 5, 2025

Copy link
Copy Markdown
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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /