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

[browser] XSS vulnerability in browser sidebar #6987

Closed
caseyflynn-google opened this issue Jan 28, 2020 · 0 comments · Fixed by #6988
Closed

[browser] XSS vulnerability in browser sidebar #6987

caseyflynn-google opened this issue Jan 28, 2020 · 0 comments · Fixed by #6988
Assignees
Labels
security issues related to security

Comments

@caseyflynn-google
Copy link
Contributor

Description

There is an XSS vulnerability in the side-panel-toolbar

Reproduction Steps

  1. Create a folder outside of Theia named "<style onload=alert(0)>"
    1.a Example: mkdir \<style\ onload=alert\(0\)\>
  2. In Theia click FIle -> Open Workspace
  3. Select the directory named <style onload=alert(0)>
  4. Open the file explorer

Outcome: Theia executes the XSS
Side effect: Theia will continue to execute the XSS on refresh until the workspace is changed.

OS and Theia version:
Linux
Theia 0.14.0

Diagnostics:

@caseyflynn-google caseyflynn-google added the security issues related to security label Jan 28, 2020
@caseyflynn-google caseyflynn-google self-assigned this Jan 28, 2020
caseyflynn-google added a commit to caseyflynn-google/theia that referenced this issue Jan 28, 2020
Change simply updates innerHtml to innerText to ensure user supplied
content does not impact the dom.

Signed-off-by: Casey Flynn <[email protected]>
caseyflynn-google added a commit that referenced this issue Jan 29, 2020
Change simply updates innerHtml to innerText to ensure user supplied
content does not impact the dom.

Signed-off-by: Casey Flynn <[email protected]>
akosyakov pushed a commit to akosyakov/theia that referenced this issue Feb 24, 2020
Change simply updates innerHtml to innerText to ensure user supplied
content does not impact the dom.

Signed-off-by: Casey Flynn <[email protected]>
JesterOrNot pushed a commit to JesterOrNot/theia that referenced this issue Mar 12, 2020
Change simply updates innerHtml to innerText to ensure user supplied
content does not impact the dom.

Signed-off-by: Casey Flynn <[email protected]>
@luigigubello luigigubello mentioned this issue Dec 16, 2020
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security issues related to security
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant