SlideShare uma empresa Scribd logo
1 de 16
Baixar para ler offline
SECURITY BOOTCAMP 2012 | Make yourself to be an expert!




            1




                        2




NHỮNG LỖ HỔNG TRONG CÀI ĐẶT GIAO THỨC
         OPEN AUTHORIZATION
      VÀ NGUY CƠ VỚI NGƯỜI DÙNG
                Security Team | VTC Intecom
SECURITY BOOTCAMP 2012 | Make yourself to be an expert!




                        2
                                  Who am I?
 - Thành viên nhóm ATTT – VTC Intecom
 - Penetration tester 2
 - Chuyên viên an ninh thanh toán trực tuyến




Open Authoriztion Vulnerability                                    1
SECURITY BOOTCAMP 2012 | Make yourself to be an expert!




                        3
                                  Nội dung

                                    2




Open Authoriztion Vulnerability                                    2
SECURITY BOOTCAMP 2012 | Make yourself to be an expert!




                        4




                                  2




Open Authoriztion Vulnerability                                    3
SECURITY BOOTCAMP 2012 | Make yourself to be an expert!




                        5
                                  Giới thiệu

                                    2
                                    Open Authorization
                                     Version 1: 4/2010
                                     Version 2: 10/2012




Open Authoriztion Vulnerability                                    4
SECURITY BOOTCAMP 2012 | Make yourself to be an expert!




                        6




                                  2




Open Authoriztion Vulnerability                                    5
SECURITY BOOTCAMP 2012 | Make yourself to be an expert!




                        7




                                  2




Open Authoriztion Vulnerability                                    6
SECURITY BOOTCAMP 2012 | Make yourself to be an expert!



         Luồng8 xử lý giao thức Oauth
                                        (2) Xác thực và ủy quyền

                     Chủ sở hữu
                                          2
                                         (3) Mã ủy quyền              Máy chủ
       (1)ID + URI                (3)                                 ủy quyền
                                           (4) Mã ủy quyền


                                           (5) Access Code

                     Ứng dụng
                     bên thứ 3             (6) Access Code
                                                                      Máy chủ
                                                                   chứa tài nguyên
                                               (7) Data


Open Authoriztion Vulnerability                                                      7
SECURITY BOOTCAMP 2012 | Make yourself to be an expert!




                        9




                                  2




Open Authoriztion Vulnerability                                    8
SECURITY BOOTCAMP 2012 | Make yourself to be an expert!



    Lỗi chuyển hướng không an toàn
           10



                             Sso.sv/auth?id=20&url= app.vn
                                       2


                                                             SSO Server
            User




                                                              App.vn



Open Authoriztion Vulnerability                                           9
SECURITY BOOTCAMP 2012 | Make yourself to be an expert!



    Lỗi chuyển hướng không an toàn
           11



                                                   evil.site
                         Sso.sv/auth?id=20&url= app.vn
                                        2



                                                               SSO Server




                              www.evil.site


Open Authoriztion Vulnerability                                             10
SECURITY BOOTCAMP 2012 | Make yourself to be an expert!



                       Lỗi quản lý phiên
                       12

 - Sau khi người đăng nhập tại SSO server xong:
      Set-Cookie: SSOID=Nekno; path=/; Domain=.sso.sv; HttpOnly
                                  2
 -   Tại ứng dụng bên thứ 3, Cookie của người
   dùng không được làm mới sau khi đăng nhập
 - Chỉ sử dụng phiên truy cập người dùng




Open Authoriztion Vulnerability                                    11
SECURITY BOOTCAMP 2012 | Make yourself to be an expert!




                         13
                            Mô tả nguy cơ

                                                       User
                                  Sso.sv/login?id=20&url=evil.site
                                  2


      Attacker
                                     SSO Server         Đăng nhập và ủy quyền



app.vn/login?code=abcd                   Evil.site       Đánh cắp mã ủy quyền



      App.vn

Open Authoriztion Vulnerability                                                 12
SECURITY BOOTCAMP 2012 | Make yourself to be an expert!




                        14




                                  2




Open Authoriztion Vulnerability                                    13
SECURITY BOOTCAMP 2012 | Make yourself to be an expert!



                   Giải pháp khắc phục
                    15

  Các ứng dụng đăng ký URL cố định với máy
   chủ ủy quyền
                     2
  Thiết lập cookie mới cho người dùng sau khi
   xác thực thành công




Open Authoriztion Vulnerability                                    14
SECURITY BOOTCAMP 2012 | Make yourself to be an expert!




           16




                       2


           Xin cảm ơn!

Mais conteúdo relacionado

Mais de Security Bootcamp

Ransomware is Knocking your Door_Final.pdf
Ransomware is Knocking your Door_Final.pdfRansomware is Knocking your Door_Final.pdf
Ransomware is Knocking your Door_Final.pdfSecurity Bootcamp
 
Hieupc-The role of psychology in enhancing cybersecurity
Hieupc-The role of psychology in enhancing cybersecurityHieupc-The role of psychology in enhancing cybersecurity
Hieupc-The role of psychology in enhancing cybersecuritySecurity Bootcamp
 
Nguyen Huu Trung - Building a web vulnerability scanner - From a hacker’s view
Nguyen Huu Trung - Building a web vulnerability scanner - From a hacker’s viewNguyen Huu Trung - Building a web vulnerability scanner - From a hacker’s view
Nguyen Huu Trung - Building a web vulnerability scanner - From a hacker’s viewSecurity Bootcamp
 
Sbc 2020 bao gio vn co anm dua vao cong nghe mo
Sbc 2020 bao gio vn co anm dua vao cong nghe moSbc 2020 bao gio vn co anm dua vao cong nghe mo
Sbc 2020 bao gio vn co anm dua vao cong nghe moSecurity Bootcamp
 
Giam sat thu dong thong tin an toan hang hai su dung sdr
Giam sat thu dong thong tin an toan hang hai su dung sdrGiam sat thu dong thong tin an toan hang hai su dung sdr
Giam sat thu dong thong tin an toan hang hai su dung sdrSecurity Bootcamp
 
Insider threat-what-us-do d-want
Insider threat-what-us-do d-wantInsider threat-what-us-do d-want
Insider threat-what-us-do d-wantSecurity Bootcamp
 
Macro malware common techniques - public
Macro malware   common techniques - publicMacro malware   common techniques - public
Macro malware common techniques - publicSecurity Bootcamp
 
Malware detection-using-machine-learning
Malware detection-using-machine-learningMalware detection-using-machine-learning
Malware detection-using-machine-learningSecurity Bootcamp
 
Tim dieu moi trong nhung dieu cu
Tim dieu moi trong nhung dieu cuTim dieu moi trong nhung dieu cu
Tim dieu moi trong nhung dieu cuSecurity Bootcamp
 
Threat detection with 0 cost
Threat detection with 0 costThreat detection with 0 cost
Threat detection with 0 costSecurity Bootcamp
 
GOLDEN TICKET - Hiểm hoa tiềm ẩn trong hệ thống Active Directory
GOLDEN TICKET -  Hiểm hoa tiềm ẩn trong hệ thống Active DirectoryGOLDEN TICKET -  Hiểm hoa tiềm ẩn trong hệ thống Active Directory
GOLDEN TICKET - Hiểm hoa tiềm ẩn trong hệ thống Active DirectorySecurity Bootcamp
 
PHÂN TÍCH MỘT SỐ CUỘC TẤN CÔNG APT ĐIỂN HÌNH NHẮM VÀO VIỆT NAM 2017-2018
PHÂN TÍCH MỘT SỐ CUỘC TẤN CÔNG APT ĐIỂN HÌNH NHẮM VÀO VIỆT NAM 2017-2018PHÂN TÍCH MỘT SỐ CUỘC TẤN CÔNG APT ĐIỂN HÌNH NHẮM VÀO VIỆT NAM 2017-2018
PHÂN TÍCH MỘT SỐ CUỘC TẤN CÔNG APT ĐIỂN HÌNH NHẮM VÀO VIỆT NAM 2017-2018Security Bootcamp
 
Lannguyen-Detecting Cyber Attacks
Lannguyen-Detecting Cyber AttacksLannguyen-Detecting Cyber Attacks
Lannguyen-Detecting Cyber AttacksSecurity Bootcamp
 
Letrungnghia-gopyluananm2018
Letrungnghia-gopyluananm2018Letrungnghia-gopyluananm2018
Letrungnghia-gopyluananm2018Security Bootcamp
 

Mais de Security Bootcamp (20)

Ransomware is Knocking your Door_Final.pdf
Ransomware is Knocking your Door_Final.pdfRansomware is Knocking your Door_Final.pdf
Ransomware is Knocking your Door_Final.pdf
 
Hieupc-The role of psychology in enhancing cybersecurity
Hieupc-The role of psychology in enhancing cybersecurityHieupc-The role of psychology in enhancing cybersecurity
Hieupc-The role of psychology in enhancing cybersecurity
 
Nguyen Huu Trung - Building a web vulnerability scanner - From a hacker’s view
Nguyen Huu Trung - Building a web vulnerability scanner - From a hacker’s viewNguyen Huu Trung - Building a web vulnerability scanner - From a hacker’s view
Nguyen Huu Trung - Building a web vulnerability scanner - From a hacker’s view
 
Sbc 2020 bao gio vn co anm dua vao cong nghe mo
Sbc 2020 bao gio vn co anm dua vao cong nghe moSbc 2020 bao gio vn co anm dua vao cong nghe mo
Sbc 2020 bao gio vn co anm dua vao cong nghe mo
 
Deception change-the-game
Deception change-the-gameDeception change-the-game
Deception change-the-game
 
Giam sat thu dong thong tin an toan hang hai su dung sdr
Giam sat thu dong thong tin an toan hang hai su dung sdrGiam sat thu dong thong tin an toan hang hai su dung sdr
Giam sat thu dong thong tin an toan hang hai su dung sdr
 
Sbc2019 luong-cyber startup
Sbc2019 luong-cyber startupSbc2019 luong-cyber startup
Sbc2019 luong-cyber startup
 
Insider threat-what-us-do d-want
Insider threat-what-us-do d-wantInsider threat-what-us-do d-want
Insider threat-what-us-do d-want
 
Macro malware common techniques - public
Macro malware   common techniques - publicMacro malware   common techniques - public
Macro malware common techniques - public
 
Malware detection-using-machine-learning
Malware detection-using-machine-learningMalware detection-using-machine-learning
Malware detection-using-machine-learning
 
Tim dieu moi trong nhung dieu cu
Tim dieu moi trong nhung dieu cuTim dieu moi trong nhung dieu cu
Tim dieu moi trong nhung dieu cu
 
Threat detection with 0 cost
Threat detection with 0 costThreat detection with 0 cost
Threat detection with 0 cost
 
Build SOC
Build SOC Build SOC
Build SOC
 
AD red vs blue
AD red vs blueAD red vs blue
AD red vs blue
 
Securitybox
SecurityboxSecuritybox
Securitybox
 
GOLDEN TICKET - Hiểm hoa tiềm ẩn trong hệ thống Active Directory
GOLDEN TICKET -  Hiểm hoa tiềm ẩn trong hệ thống Active DirectoryGOLDEN TICKET -  Hiểm hoa tiềm ẩn trong hệ thống Active Directory
GOLDEN TICKET - Hiểm hoa tiềm ẩn trong hệ thống Active Directory
 
PHÂN TÍCH MỘT SỐ CUỘC TẤN CÔNG APT ĐIỂN HÌNH NHẮM VÀO VIỆT NAM 2017-2018
PHÂN TÍCH MỘT SỐ CUỘC TẤN CÔNG APT ĐIỂN HÌNH NHẮM VÀO VIỆT NAM 2017-2018PHÂN TÍCH MỘT SỐ CUỘC TẤN CÔNG APT ĐIỂN HÌNH NHẮM VÀO VIỆT NAM 2017-2018
PHÂN TÍCH MỘT SỐ CUỘC TẤN CÔNG APT ĐIỂN HÌNH NHẮM VÀO VIỆT NAM 2017-2018
 
Api security-present
Api security-presentApi security-present
Api security-present
 
Lannguyen-Detecting Cyber Attacks
Lannguyen-Detecting Cyber AttacksLannguyen-Detecting Cyber Attacks
Lannguyen-Detecting Cyber Attacks
 
Letrungnghia-gopyluananm2018
Letrungnghia-gopyluananm2018Letrungnghia-gopyluananm2018
Letrungnghia-gopyluananm2018
 

SBC 2012 - Lỗ hổng trong cài đặt giao thức OAuth và nguy cơ với người dùng (Nguyễn Thành Long)

  • 1. SECURITY BOOTCAMP 2012 | Make yourself to be an expert! 1 2 NHỮNG LỖ HỔNG TRONG CÀI ĐẶT GIAO THỨC OPEN AUTHORIZATION VÀ NGUY CƠ VỚI NGƯỜI DÙNG Security Team | VTC Intecom
  • 2. SECURITY BOOTCAMP 2012 | Make yourself to be an expert! 2 Who am I? - Thành viên nhóm ATTT – VTC Intecom - Penetration tester 2 - Chuyên viên an ninh thanh toán trực tuyến Open Authoriztion Vulnerability 1
  • 3. SECURITY BOOTCAMP 2012 | Make yourself to be an expert! 3 Nội dung 2 Open Authoriztion Vulnerability 2
  • 4. SECURITY BOOTCAMP 2012 | Make yourself to be an expert! 4 2 Open Authoriztion Vulnerability 3
  • 5. SECURITY BOOTCAMP 2012 | Make yourself to be an expert! 5 Giới thiệu 2 Open Authorization  Version 1: 4/2010  Version 2: 10/2012 Open Authoriztion Vulnerability 4
  • 6. SECURITY BOOTCAMP 2012 | Make yourself to be an expert! 6 2 Open Authoriztion Vulnerability 5
  • 7. SECURITY BOOTCAMP 2012 | Make yourself to be an expert! 7 2 Open Authoriztion Vulnerability 6
  • 8. SECURITY BOOTCAMP 2012 | Make yourself to be an expert! Luồng8 xử lý giao thức Oauth (2) Xác thực và ủy quyền Chủ sở hữu 2 (3) Mã ủy quyền Máy chủ (1)ID + URI (3) ủy quyền (4) Mã ủy quyền (5) Access Code Ứng dụng bên thứ 3 (6) Access Code Máy chủ chứa tài nguyên (7) Data Open Authoriztion Vulnerability 7
  • 9. SECURITY BOOTCAMP 2012 | Make yourself to be an expert! 9 2 Open Authoriztion Vulnerability 8
  • 10. SECURITY BOOTCAMP 2012 | Make yourself to be an expert! Lỗi chuyển hướng không an toàn 10 Sso.sv/auth?id=20&url= app.vn 2 SSO Server User App.vn Open Authoriztion Vulnerability 9
  • 11. SECURITY BOOTCAMP 2012 | Make yourself to be an expert! Lỗi chuyển hướng không an toàn 11 evil.site Sso.sv/auth?id=20&url= app.vn 2 SSO Server www.evil.site Open Authoriztion Vulnerability 10
  • 12. SECURITY BOOTCAMP 2012 | Make yourself to be an expert! Lỗi quản lý phiên 12 - Sau khi người đăng nhập tại SSO server xong: Set-Cookie: SSOID=Nekno; path=/; Domain=.sso.sv; HttpOnly 2 - Tại ứng dụng bên thứ 3, Cookie của người dùng không được làm mới sau khi đăng nhập - Chỉ sử dụng phiên truy cập người dùng Open Authoriztion Vulnerability 11
  • 13. SECURITY BOOTCAMP 2012 | Make yourself to be an expert! 13 Mô tả nguy cơ User Sso.sv/login?id=20&url=evil.site 2 Attacker SSO Server Đăng nhập và ủy quyền app.vn/login?code=abcd Evil.site Đánh cắp mã ủy quyền App.vn Open Authoriztion Vulnerability 12
  • 14. SECURITY BOOTCAMP 2012 | Make yourself to be an expert! 14 2 Open Authoriztion Vulnerability 13
  • 15. SECURITY BOOTCAMP 2012 | Make yourself to be an expert! Giải pháp khắc phục 15  Các ứng dụng đăng ký URL cố định với máy chủ ủy quyền 2  Thiết lập cookie mới cho người dùng sau khi xác thực thành công Open Authoriztion Vulnerability 14
  • 16. SECURITY BOOTCAMP 2012 | Make yourself to be an expert! 16 2 Xin cảm ơn!