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

Code block language search XSS #11869

Closed
3 tasks done
claunch3r opened this issue Jul 2, 2024 · 2 comments
Closed
3 tasks done

Code block language search XSS #11869

claunch3r opened this issue Jul 2, 2024 · 2 comments
Assignees
Labels
Milestone

Comments

@claunch3r
Copy link

claunch3r commented Jul 2, 2024

Self-XSS in the language selection field for the code block

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

Hello, I found Self-XSS in the language selection field for the code block.
Payload: <img/src/onerror=prompt("XSS")>

Steps to reproduce vulnerability

  1. You need to create a code block and click on the "language" button;
  2. Next, enter the specified payload in the input field labeled "Search". My payload: <img/src/onerror=prompt("XSS")> ;
  3. As a result, the pop-up windows appears.

Expected result

Execution of malicious Javascript code. In this case, a pop-up window with XSS and an input field appears.

Screenshot or screen recording presentation

poc

Version environment

- Version: 3.0.17
- Operating System: Docker server
- Browser (if used): Firefox

Log file

More information

@Anonymous-hss
Copy link

Can you mention the steps to recreate the issue ?

@claunch3r
Copy link
Author

Can you mention the steps to recreate the issue ?

I've added the steps to reproduce vulnerability

@88250 88250 changed the title Self-XSS in the language selection field for the code block Code block language search XSS Jul 2, 2024
@88250 88250 added the Bug label Jul 2, 2024
@88250 88250 added this to the 3.1.0 milestone Jul 2, 2024
Vanessa219 added a commit that referenced this issue Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants