XSS attack to bypass htmlspecialchars() function in value attribute

后端 未结 5 1616
终归单人心
终归单人心 2020-12-24 13:48

Let\'s say we have this form, and the possible part for a user to inject malicious code is this below

...


        
5条回答
  •  情话喂你
    2020-12-24 14:49

    You cannt exploit that input field which contain that func but you can exploit any btn or paragraph or heading or text near it by: like you can add this on btn -> onclick=alert('Hello')

提交回复
热议问题