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
SSRFとmetadata
Search
Yuya Asato
January 19, 2019
Research
230
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
SSRFとmetadata
2018/01/19に行われたJAWS-UG沖縄の登壇資料です。
https://jaws-ug-okinawa.doorkeeper.jp/events/85333
Yuya Asato
January 19, 2019
Transcript
13 slides
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ͷೝূใΛ֎෦͔ΒऔಘͰ͖Δ • ೖྗͷݕূ͍ͬͯ͠….
More Decks by Yuya Asato
See All by Yuya Asato
フルクラウド環境下でのペネトレーションテスト
328
3
1.7k
JAWS DAYS 2018 LT
328
0
56
Other Decks in Research
See All in Research
Byzantine Eventual Consistency for Reliable Local-First Software
ept
0
400
湯村研究室の紹介2026 / yumulab2026
yumulab
0
230
山中市政の総括:相反する二つの顔
sishi
0
240
AI時代に学術情報をどう探し、どう使うか: 研究の様々な場面と一研究者の経験から
masao
0
140
CDCL を用いた MILP の厳密解法
imai448
0
330
Développer des solutions de réduction des émissions de méthane entérique : 1ers résultats Méthane 2030
institutdelelevage
PRO
0
290
ThermoGS (ECCV2026)解説 — 4D Gaussian Splatting × Thermodynamics CVと物理の統合モデルとして
godel
PRO
0
110
データサイエンティストの就労意識~2015 → 2026 一般(個人)会員アンケートより
datascientistsociety
PRO
0
1.2k
MIRU2026 チュートリアル講演2:三次元データ処理の動向
nnchiba
8
5.6k
Être éleveur dans un monde en transition : Comprendre les changements pour mieux les accompagner
institutdelelevage
PRO
0
160
Santé et fertilité des sols : ce que nous disent les pratiques dans les systèmes de polyculture-élevage
institutdelelevage
PRO
0
160
[webinaire du Ciirpo] Agnelages plein air : des éleveurs partagent leurs pratiques
institutdelelevage
PRO
0
330
Featured
See All Featured
Being A Developer After 40
akosma
PRO
92
590k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
850
RailsConf 2023
tenderlove
30
1.6k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
560
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.5k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
SEO for Brand Visibility & Recognition
aleyda
0
4.9k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Bash Introduction
62gerente
615
220k
A designer walks into a library…
pauljervisheath
211
25k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.9k
How to Think Like a Performance Engineer
csswizardry
28
2.9k