Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
SSRFとmetadata
Search
Yuya Asato
January 19, 2019
Research
0
210
SSRFとmetadata
2018/01/19に行われたJAWS-UG沖縄の登壇資料です。
https://jaws-ug-okinawa.doorkeeper.jp/events/85333
Yuya Asato
January 19, 2019
Tweet
Share
More Decks by Yuya Asato
See All by Yuya Asato
フルクラウド環境下でのペネトレーションテスト
328
3
1.1k
JAWS DAYS 2018 LT
328
0
41
Other Decks in Research
See All in Research
新規のC言語処理系を実装することによる 組込みシステム研究にもたらす価値 についての考察
zacky1972
0
140
論文紹介/Expectations over Unspoken Alternatives Predict Pragmatic Inferences
chemical_tree
1
260
情報処理学会関西支部2024年度定期講演会「自然言語処理と大規模言語モデルの基礎」
ksudoh
6
800
文献紹介:A Multidimensional Framework for Evaluating Lexical Semantic Change with Social Science Applications
a1da4
1
220
[CV勉強会@関東 CVPR2024] Visual Layout Composer: Image-Vector Dual Diffusion Model for Design Layout Generation / kantocv 61th CVPR 2024
shunk031
1
460
文化が形作る音楽推薦の消費と、その逆
kuri8ive
0
160
Language is primarily a tool for communication rather than thought
ryou0634
4
740
さんかくのテスト.pdf
sankaku0724
0
350
Physics of Language Models: Part 3.1, Knowledge Storage and Extraction
sosk
1
950
Kaggle役立ちアイテム紹介(入門編)
k951286
14
4.6k
Weekly AI Agents News! 8月号 プロダクト/ニュースのアーカイブ
masatoto
1
190
MIRU2024チュートリアル「様々なセンサやモダリティを用いたシーン状態推定」
miso2024
4
2.2k
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
Building Applications with DynamoDB
mza
90
6.1k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
24k
What's in a price? How to price your products and services
michaelherold
243
12k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
Visualization
eitanlees
145
15k
Designing for humans not robots
tammielis
250
25k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
How to Ace a Technical Interview
jacobian
276
23k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Site-Speed That Sticks
csswizardry
0
28
Transcript
SSRFͱmetadata JAWS-UGԭೄ 2018.01.19 Core Member YUYA ASATO @328__
ࣗݾհ • Name : ҆ཬ ༔ Twitter : @328__ JAWS-UGԭೄ
ίΞϝϯόʔ • ීஈηΩϡϦςΟͳ ͓ࣄΛͯ͠·͢
AWSͷڞ༗Ϟσϧ https://aws.amazon.com/jp/compliance/shared-responsibility-model/
IAM ϩʔϧͬͯ·͔͢ʁ
IAM (Identity and Access Management) AWSαʔϏεͷૢ࡞ΛΑΓηΩϡΞʹߦ͏ͨΊͷ ೝূɾೝՄͷΈ *".Ϣʔβ *".ϩʔϧ -
ϚωδϝϯτίϯιʔϧͷϩάΠϯ - ར༻ऀ(User)୯ҐͰ࡞ - αʔϏε୯ҐͰAWSૢ࡞ݖݶΛ༩
IAMϩʔϧΛ͏ϝϦοτ • IAMϢʔβΑΓೝূใͷཧָ͕ • ೝূใͷࣗಈߋ৽͕Մೳ • ΞϓϦέʔγϣϯͷϋʔυίʔσΟϯάࢭ
IAMϩʔϧͱmetadata • ԼهͷURLʹcredentials͕ଘࡏ http://169.254.169.254/latest/meta-data/iam/security- credentials/ • ͜͜ʹcredentials͕ೖ͍ͬͯΔͷͰAWS CLI AWS SDK͕ར༻Ͱ͖Δ
metadataΛಡΈࠐΉ͜ͱͰ AWSϦιʔεͷΞΫηε͕Մೳ https://docs.aws.amazon.com/ja_jp/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
IAM Roleͷར༻ = ҆શʁ • ೝূใΛਓ͕ؒཧ͠ͳ͍ʹ҆શ • ֎෦͔ΒmetadataʹΞΫηεͰ͖ͯ͠·͑ ೝূใΛऔ͢Δ͜ͱՄೳ
SSRF (Server Side Request Forgery) • ߈ܸऀ͔Β౸ୡͰ͖ͳ͍αʔόʹ ର͢Δ߈ܸख๏
SSRFΛར༻ͨ͠ೝূใͷऔಘ demo
ରࡦ • Ͱ͖Δ͜ͱͳΒϢʔβ͔ΒURL,ύεͷೖྗΛड͚͚ͳ͍ • ڐՄ͞ΕͨURLͷҰཡදʢϗϫΠτϦετʣΛ࡞ͯ͠Ξ ΫηεͰ͖ΔൣғΛݶఆ͢Δ • Ϩεϙϯεͷݕূͱ͔ͬͨ΄͏͕͍͍ʁ • IAMϩʔϧʹ༩͢ΔݖݶΛ࠷খԽ
AdministratorAccessͱ͔ͪ͠Όμϝ…
ରࡦͷ͠͞ • αʔϏεͰAWSSDKͬͯͨΓ͢Δͱ firewalldͰϒϩοΫͰ͖ͳ͍ • ೖྗΛϑΟϧλ͢Δͷͳ͔ͳ͔͍͠ 8ਐ, 16ਐͷࠞࡏදهͰ͖Δ http://0xA9FEA9FE http://0xA9.0xFE.0xA9.0xFE
http://0251.0376.0251.0376 http://0xA9.0376.0251.0xFE
ࡶײ • WebΞϓϦέʔγϣϯʹ੬ऑੑ͕͋Ε AWSͷೝূใΛ֎෦͔ΒऔಘͰ͖Δ • ೖྗͷݕূ͍ͬͯ͠….