Commit 4530bb0
authored
Fixed possible XSS attack
https://oscarotero.com/embed2/demo/index.php?url=ftp://oscarotero.com/;<script>alert()</script>
The JS would be (obviously) blocked on modern browser because it clearly triggers XSS auditors but CSS/HTML isn't blocked and auditors can be bypassed. Added htmlentities() on the output message of error thrown.1 parent 753c886 commit 4530bb0
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments