XSS and CSRF — the browser trusts the wrong origin
Cross-site scripting runs attacker JavaScript in a victim's session and CSRF rides the victim's cookies to act as them; both exploit the browser's trust model, and both matter for any dapp UI.
Not yet scoped.
Why
The PoC shows a stored-XSS payload and a CSRF request, then the defenses (CSP, sanitization, SameSite, tokens) — the front-end half of security a contract audit never covers.
How it works
Not yet built.
Where it lands in Jayverse
Wallet: test that a stored-XSS payload elsewhere on jaylabs.xyz cannot reach the signing prompt. The signing call should only be triggerable from Wallet's own trusted script context, not any script running on the page.
Rabbit portal: add CSRF tokens and SameSite cookies to every authenticated portal action. Sanitize any user-generated content path — persona bios, market descriptions — before it ships.
Key expressions
Words and phrases from this page worth keeping, with the Korean meaning and the sentence they come from.
Expression
뜻 · 쓰이는 자리
ride (someone's cookies)
~을 몰래 편승해 이용하다 · CSRF가 피해자의 쿠키를 이용해 요청을 보낼 때. "CSRF rides the victim's cookies"
act as them
그 사람인 것처럼 행동하다(사칭하다) · 인증 정보를 도용해 본인처럼 행동할 때. "to act as them"
exploit the trust model
신뢰 구조의 허점을 악용하다 · 브라우저가 특정 출처를 무조건 믿는 점을 공격할 때. "both exploit the browser's trust model"
a stored-XSS payload
저장형 XSS 공격 코드 · 서버에 영구 저장되어 실행되는 악성 스크립트를 가리킬 때. "a stored-XSS payload and a CSRF request"
never covers
전혀 다루지 않다(대상에서 빠져 있다) · 특정 점검 범위가 완전히 놓치는 영역을 말할 때. "a contract audit never covers"
XSS
크로스사이트 스크립팅(Cross-Site Scripting) · 공격자 스크립트가 피해자 세션에서 실행되는 취약점. "Cross-site scripting runs attacker JavaScript in a victim's session"
CSRF
사이트 간 요청 위조(Cross-Site Request Forgery) · 피해자 쿠키를 이용해 원치 않는 요청을 보내는 공격. "CSRF rides the victim's cookies to act as them"
CSP
콘텐츠 보안 정책(Content Security Policy) · 브라우저가 로드할 스크립트 출처를 제한하는 방어 수단. "the defenses (CSP, sanitization, SameSite, tokens)"
SameSite
동일 사이트 쿠키 속성(SameSite 쿠키 속성) · 쿠키가 다른 출처로 전송되지 못하게 막는 CSRF 방어 수단. "the defenses (CSP, sanitization, SameSite, tokens)"