Skip to content

[Bug]: Potential stored XSS #89

@artemy-ccrsky

Description

@artemy-ccrsky

Describe the bug

Creating/editing module we can edit main.vue, so it leads to stored XSS and also potential impact for interact with WebSocket using valid origin.
Potential impact: Low privilege user affect on high privilege
image_2023-01-27_03-57-55

Steps to Reproduce

  1. Create/edit module
  2. Edit main.vue and add for example: alert("xss") in script block
  3. Open module and browser will render this main.vue
  4. Get XSS alert, or interact with WebSocket using Cross-site Websocket Hijacking bug

Place where not implemented origin check => CSWSH
Exploiting XSS we can interact with WS-server tusing valid origin, so better use CSRF-token to prevent this situations

Screenshots, screen recording, code snippet

Get XSS alert
image_2023-01-27_03-57-55

Environment information

module version: 1.0.1

Which agent binary used?

  • darwin-amd64
  • linux-386
  • linux-amd64
  • windows-386
  • windows-amd64

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions