Skip to content

Reflected XSS vulnerability on consent page #1111

@retomock

Description

@retomock

Hi,

There seems to be a reflected XSS vulnerability on the consent page. See screenshot.
Steps to reproduce:

  1. clone the repository (22/8/2016 master branch)
  2. run the openid-connect-server-webapp
  3. visit
    http://localhost:8080/openid-connect-server-webapp/authorize?response_type=code&client_id=client&scope=openid&redirect_uri=http://localhost/%3Cscript%3Ealert(%27XSS%27)%3C%2fscript%3E&nonce=123&state=456 in Firefox (V48.0 on Linux)
  4. login as "user" / "password"
  5. a popup saying "XSS" appears

In Chrome the script execution gets blocked: "The XSS Auditor refused to execute a script in 'http://localhost:8080/openid-connect-server-webapp/authorize?response_type=code&client_id=client&scope=openid&redirect_uri=http://localhost/%3Cscript%3Ealert(%27XSS%27)%3C%2fscript%3E&nonce=123&state=456' because its source code was found within the request. The auditor was enabled as the server sent neither an 'X-XSS-Protection' nor 'Content-Security-Policy' header."

xss-2

Regards,
Reto

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions