Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix XSS by rewriting help text modals as JSX components #560

Merged
merged 1 commit into from
Jul 26, 2022
Merged

Fix XSS by rewriting help text modals as JSX components #560

merged 1 commit into from
Jul 26, 2022

Conversation

ghost
Copy link

@ghost ghost commented Jul 26, 2022

As discussed in #338, BloodHound currently contains a cross-site scripting vulnerability (XSS). The underlying reason is that help text modals are composed using template strings, which are prone to XSS vulnerabilities. The most thorough mitigation is to use JSX components instead. In order to spare @rvazarkar some effort, we therefore rewrote the help text modals as JSX components.

Furthermore, this commit fixes a few formatting errors in PowerShell scripts, such as wrong quotation marks and missing backslash escapes.

Closes #338

@rvazarkar
Copy link
Contributor

Wow! This is awesome! We're currently working on the 4.2 branch, so I'm going to try and rebase this against there to make sure it gets in that release. Thanks for this awesome work, and for saving me a bunch of time.

@rvazarkar rvazarkar changed the base branch from master to 4.2 July 26, 2022 15:41
@rvazarkar rvazarkar merged commit 3877701 into SpecterOps:4.2 Jul 26, 2022
@rvazarkar
Copy link
Contributor

Thanks so much for the MR!

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.

[Security] XSS in HelpModal leading to RCE via imported malicious data file
1 participant