Skip to content

XSS in url parameter #1262

@mehmetaydogdu

Description

@mehmetaydogdu

Here is the XSS. http://petstore.swagger.io/?url=%3Cscript%3Ealert(atob(%22SGVyZSBpcyB0aGUgWFNT%22))%3C/script%3E

The problem is in /swagger-api/swagger-ui/master/dist/swagger-ui.js
at line
$('#input_baseUrl').val(url);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions