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.5k
JAWS DAYS 2018 LT
328
0
46
Other Decks in Research
See All in Research
多言語カスタマーインタビューの“壁”を越える~PMと生成AIの共創~ 株式会社ジグザグ 松野 亘
watarumatsuno
0
130
Unsupervised Domain Adaptation Architecture Search with Self-Training for Land Cover Mapping
satai
3
200
不確実性下における目的と手段の統合的探索に向けた連続腕バンディットの応用 / iot70_gp_rff_mab
monochromegane
2
190
Minimax and Bayes Optimal Best-arm Identification: Adaptive Experimental Design for Treatment Choice
masakat0
0
180
[論文紹介] Intuitive Fine-Tuning
ryou0634
0
120
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
600
20250605_新交通システム推進議連_熊本都市圏「車1割削減、渋滞半減、公共交通2倍」から考える地方都市交通政策
trafficbrain
0
860
VectorLLM: Human-like Extraction of Structured Building Contours via Multimodal LLMs
satai
4
320
Panopticon: Advancing Any-Sensor Foundation Models for Earth Observation
satai
3
220
【輪講資料】Moshi: a speech-text foundation model for real-time dialogue
hpprc
3
750
ロボット学習における大規模検索技術の展開と応用
denkiwakame
1
130
Submeter-level land cover mapping of Japan
satai
3
410
Featured
See All Featured
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
Rails Girls Zürich Keynote
gr2m
95
14k
Art, The Web, and Tiny UX
lynnandtonic
303
21k
The Cost Of JavaScript in 2023
addyosmani
54
9k
Principles of Awesome APIs and How to Build Them.
keavy
127
17k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
9
590
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Product Roadmaps are Hard
iamctodd
PRO
54
11k
The Pragmatic Product Professional
lauravandoore
36
6.9k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
140
34k
GraphQLの誤解/rethinking-graphql
sonatard
73
11k
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ͷೝূใΛ֎෦͔ΒऔಘͰ͖Δ • ೖྗͷݕূ͍ͬͯ͠….