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
220
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.4k
JAWS DAYS 2018 LT
328
0
45
Other Decks in Research
See All in Research
CSP: Self-Supervised Contrastive Spatial Pre-Training for Geospatial-Visual Representations
satai
3
220
Submeter-level land cover mapping of Japan
satai
3
130
Type Theory as a Formal Basis of Natural Language Semantics
daikimatsuoka
1
250
[CV勉強会@関東 CVPR2025] VLM自動運転model S4-Driver
shinkyoto
2
240
EOGS: Gaussian Splatting for Efficient Satellite Image Photogrammetry
satai
4
300
Ad-DS Paper Circle #1
ykaneko1992
0
5.6k
Generative Models 2025
takahashihiroshi
21
12k
MGDSS:慣性式モーションキャプチャを用いたジェスチャによるドローンの操作 / ec75-yamauchi
yumulab
0
260
Looking for Escorts in Sydney?
lunsophia
1
120
チャッドローン:LLMによる画像認識を用いた自律型ドローンシステムの開発と実験 / ec75-morisaki
yumulab
1
490
SatCLIP: Global, General-Purpose Location Embeddings with Satellite Imagery
satai
3
230
Google Agent Development Kit (ADK) 入門 🚀
mickey_kubo
2
1.1k
Featured
See All Featured
Agile that works and the tools we love
rasmusluckow
329
21k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
29
9.6k
A Modern Web Designer's Workflow
chriscoyier
695
190k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
21k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
Writing Fast Ruby
sferik
628
62k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3.1k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
5.9k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.9k
Side Projects
sachag
455
42k
Code Review Best Practice
trishagee
69
19k
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ͷೝূใΛ֎෦͔ΒऔಘͰ͖Δ • ೖྗͷݕূ͍ͬͯ͠….