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

XSS vulnerability in /settings/store endpoint #7282

Closed
felixtoe opened this issue Mar 14, 2024 · 1 comment
Closed

XSS vulnerability in /settings/store endpoint #7282

felixtoe opened this issue Mar 14, 2024 · 1 comment

Comments

@felixtoe
Copy link

felixtoe commented Mar 14, 2024

Describe the bug

XSS vulnerability in /settings/store endpoint

To Reproduce

Steps to reproduce the behavior:

  1. Use a man-in-the-middle proxy like mitmproxy
  2. Intercept POST request to /settings/store (is e. g. being called when resizing left menu bar)
  3. Modify the request body like in the attached screenshot (... \"children\": [{\"id\":\"+3'-alert('XSS')-'\", ...) and resume request
  4. Reload pgAdmin homepage. Alert box is popping up.

Tested with pgAdmin4 8.0 and 8.3.

Screenshots

Are attached :)
XSS1
XSS2

@khushboovashi
Copy link
Contributor

Issue has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants