-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In restricted mode, restrict image link protocol
In restricted mode, protocol for image links is restricted the same way it was already done for text links. This disallows using JavaScript in image links, for example.
- Loading branch information
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
In restricted mode, restrict protocol for image links too like it was already done for text links: | ||
setup: | ||
- setRestricted: true | ||
input: | | ||
!securing.pl(Click Tu)!:javascript:document.innerHTML='<script>alert(1);</script>'+document.cookie) | ||
"securing.pl(Click Tu)":javascript:document.innerHTML='<script>alert(1);</script>'+document.cookie) | ||
expect : | | ||
<p>!securing.pl(Click Tu)!:javascript:document.innerHTML=’<script>alert(1);</script>’+document.cookie)</p> | ||
<p>“securing.pl(Click Tu)”:javascript:document.innerHTML=’<script>alert(1);</script>’+document.cookie)</p> |