Skip to content

xss bug #1

@gihnius

Description

@gihnius

hi, I found a bug in the code that'd cause xss issue.

return template.HTML(fmt.Sprintf(`<input type="text" value="%s" name=%q id=%q%s>`, field.Value, field.Name, field.Name, attrsStr))

if field.Value is "><script>alert(123)</script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions