Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
XSS(stored)
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
shoma
July 10, 2023
Technology
84
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
XSS(stored)
DVWAを用いて、XSSについてのLTを行った時の資料です。
shoma
July 10, 2023
More Decks by shoma
See All by shoma
コンテナ脆弱性体験資料
shoma_slide
0
62
都知事杯FirstStage
shoma_slide
0
32
ネットワーク基礎講座
shoma_slide
1
120
Other Decks in Technology
See All in Technology
二歩目のフロントエンド・ウェブアクセシビリティ
camiha
2
570
WasmをRustにする
sansantech
PRO
0
250
Post AI時代のリファクタリング実践記 / Refactoring in the post AI era
kaminashi
1
230
夫婦で子育てするための育児標準化
codmoninc
PRO
0
330
Optunaの最新リリースv5.0について
pfn
PRO
0
120
アウトプット初心者、半年間のふりかえり
4o1sobblue
0
430
JAWSUG TOHOKU 青森支部 「LoGoチャット」のAWS移行で 乗り越えたこと
taketakekaho
0
330
コンテナ運用におけるネットワーク・コンテナコストの削減方法/How to Reduce Network and Container Costs in Container Operations
masakiokuda
1
150
ブラウザとサーバーから考えるAI時代のフロントエンド監視
shogo4131
3
940
実践! SRE × AI - ABEMA における AIOps -
tetsuya28
8
3.1k
今さら理解するウェブフォントver.2026
takanorip
3
770
実践!Cloud Run ハンズオン!! / Cloud Run handson
y0hgi
2
280
Featured
See All Featured
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
480
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
330
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
780
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.6k
We Have a Design System, Now What?
morganepeng
55
8.4k
Navigating Team Friction
lara
192
16k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
Paper Plane
katiecoart
PRO
5
54k
GraphQLとの向き合い方2022年版
quramy
50
15k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
630
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
270
Transcript
XSS (stored)について 4403 井口尚磨 1
攻撃手法 • 入力フォームにHTML文を入力 • DBにHTML文の挿入 • 攻撃者の好きなサイトが作成 2
事前調査 ・HTML文を入力してみる ・<h2>タグで囲む 3
HTML文の埋め込み <!-- 変数設定--> <script>d=document;k=d.cookie;c="click"</script> <script>u="twitter.com?";</script> <!-- アンカータグ作成--> <script>a=d.createElement("a")</script> <script>a.href=u;a.innerText="help!!!!!!"</script> <!--
埋め込み先指定--> <script>p=d.getElementsByTagName("table")</script> <!-- 埋め込み--> <script>p[0].appendChild(a)</script> 4
HTML文の埋め込み • 掲示板には文字数制限 • メッセージの分割 • メッセージは未出力 5
挙動の例 help!!!!の文字が表示 WEBページが改ざん 6
対策法 • 入力文字は未知 → <script>タグの防御では不完全 • 入力文字をそのままサイトのHTML文に組み込むのが問題 → HTML文が入力されても認識させない $message
= stripslashes( $message ); 7