Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

mitigating XSS attack#218

Merged
shlomi-noach merged 2 commits into
masterfrom
search-xss
Jun 28, 2017
Merged

mitigating XSS attack#218
shlomi-noach merged 2 commits into
masterfrom
search-xss

Conversation

@shlomi-noach
Copy link
Copy Markdown
Collaborator

The web form was using texts provided as query params. This is now mitigated by escaping values to disable javascript execution.

cc @Oneiroi

@Oneiroi
Copy link
Copy Markdown

Oneiroi commented Jun 27, 2017

XSS Vulnerability detail

Tested using FireFox 54.0 noted that the search functionality was vulnerable to XSS

Example is the following link: https://your.domain.tld/orchestrator/web/search?s=%22%3E%3Cscript/%00%00v%00%00%3Ealert(document.domain)%3C/script%3E (replacing your.domain.tld with your valid FQDN for orchestrator < 2.1.5)

The issue occurs as the search string is written into the HTML which provides the text input for the search.

The above attack string forces a html breakout resulting in javascript code execution within the victims browser, please see the screenshot below for a proof.

image

The URL could be manipulated to run any arbitrary javascript within the victim browser e.g. to steal cookie information, session information / tokens etc.

I can confirm that version 2.1.5 is not susceptible to this XSS attack

@shlomi-noach
Copy link
Copy Markdown
Collaborator Author

shlomi-noach commented Jun 27, 2017

I can reserve more comments for you. Since I work at GitHub I get up to 2,000 comments per month I can reserve for friends :trollface:

@grypyrg
Copy link
Copy Markdown

grypyrg commented Jun 27, 2017

Can I get one too? I want it to appear before @Oneiroi's. I'm willing to pay for it!

@choadrocker
Copy link
Copy Markdown

I will pay more than Kenny

@grypyrg
Copy link
Copy Markdown

grypyrg commented Jun 27, 2017

$100!

@choadrocker
Copy link
Copy Markdown

ok, he can have it

@shlomi-noach shlomi-noach deployed to production/github-mysqlutil June 28, 2017 05:46 Active
@shlomi-noach shlomi-noach merged commit 943be0c into master Jun 28, 2017
@shlomi-noach shlomi-noach deleted the search-xss branch June 28, 2017 05:54
@shlomi-noach
Copy link
Copy Markdown
Collaborator Author

That's it. No more free comments!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants