Skip to content

escape html special chars in name attribute#36

Closed
caverav wants to merge 1 commit intototaljs:masterfrom
caverav:master
Closed

escape html special chars in name attribute#36
caverav wants to merge 1 commit intototaljs:masterfrom
caverav:master

Conversation

@caverav
Copy link

@caverav caverav commented Feb 28, 2022

I have escaped the html special characters from the name attribute in particular, however this should be done with all user-controllable inputs, this should close #35.

Now if you try to put the POC mentioned in the issue ("><img src=x onerror=alert(1)>) you will see the following:

image

@P0cas
Copy link

P0cas commented Feb 28, 2022

I have confirmed for that

@petersirka
Copy link
Collaborator

I have a better fix. It will be soon.

@petersirka petersirka closed this Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Security Issue - Cross Site Scripting (Stored)

3 participants