Skip to main content

ทำให้ Burp สามารถ intercept HTTPs ได้ด้วย Firefox (Howto intercept https by burp)

This simply post is written from my problem when I do penetration testing on customer's web application running on HTTPs protocol or when I try to find a bug on public website.

I write in thai language but everyone can easy understand by looking picture below.

post เบาๆ อันนี้เขียนจากว่า
  •  ไปทำการทดสอบเจาะระบบ Web Application ที่ไซต์ลูกค้า แล้วลูกค้าใช้ HTTPs  พอจะใช้ Burp suite ทำการ intercept เวปไซต์ที่เป็น HTTPs บน firefox มันจะขึ้น error ที่บอกว่ามีการใช้ HSTS 
  • จะลองหา Bug ของพวก gmail, facebook หรือ เวปไซต์ HTTPs อื่นๆ ก็จะขึ้นเช่นเดียวกัน ตามรูป 




เราจะแก้ไขโดยการ import CA cert ของ Burp suite เข้าไปเพื่อให้เป็น Burp เป็น trusted root ใน firefox โดยมีวิธีดังนี้


ในที่นี้จะ assume ว่ามีการ run burp เป็น proxy ไว้เรียบร้อยแล้วนะ โดยที่ firefox ก็จะต้องชี้ไปยัง burp ด้วย (ถึงได้เกิด error ด้านบนขึ้นมา)


1. ใช้ firefox เข้า http://burp




2.  คลิ๊กที่ CA Certificate ด้านขวามือ จะให้เรา download ตัว "cacert.der" มาเก็บไว้ที่ที่ต้องการ




3. ไปที่ tools --> option หรือ คลิ๊กตามรูป



4. ไปที่ Advanced --> Certificates --> View Certificates ตามรูป




5. ไปที่ tab "Authorities"




6. คลิ๊กเลือก import แล้ว browse ไฟล์ cacert.der ที่เรา save เก็บไว้ตอนต้น แล้วทำการ open




7. แล้วเลือก "Trust this CA to identify websites" เสร็จแล้วคลิ๊ก OK




8. เสร็จแล้วลองเข้ามา check ดู จะพบว่ามี CA ของ burp ติดตั้งอยู่ตามรูป (postwigger นั่นละ)




9. หลังจากนั้นก็ทำการ restart firefox เมื่อเปิดขึ้นมาใหม่ก็จะสามารถ intercept HTTPs ได้ละ ลองด้วย  pantip และ gmail






สำหรับ browser ตัวอื่นก็จะคล้ายๆกันครับ 

Reference : https://support.portswigger.net/customer/portal/articles/1783087-installing-burp-s-ca-certificate-in-firefox

Comments

Post a Comment

Popular posts from this blog

CesarFTP BOF Review / Review การทำ Buffer Overflow CesarFTP

version ภาษาไทย ไว้มีเวลาจะมา update ภายหลังครับ Today I would like to review my old one lesson about buffer overflow before I take the OSCP exam in 2015. I wish you learn basic BOF from this post. CesarFTP is the one ftp software which is vulnerabled to BOF (buffer overflow). 1. The first step I download vulnerabled software from internet and install on WinXP (vm) and then 2. Try to search for exploit in my kali linux  (No, I don't exploit by metasploit just find the start code and try to make it overflow) This original python 1906.py code is as picture below. I have to change "host" ip before do next step. ***Let's take a look at "buffer". That is something I have to modify later.*** but right now I begin with Fuzzing to find how many characters can crash this application ? 3. Control EIP address - try to replace character after  "\n" * 671 by "A" 350 characters and found that Cesar not be crashed. - Let&

My OSCP Review <-> รีวิว ประสบการณ์การสอบ OSCP ( It is just the beginning)

เนื้อหาภาษาไทยสามารถดูได้ด้านล่างนะครับ About me I would like to tell you before that my english writing skill is not good, ^^", but I will try . I was Network Engineer and System Engineer with 10 years working experience and have CCNP, CCNP Security, CCDP, ITIL, MCP and I have experience in ISO27001 for 4 years. Right now I move to be a Penetration Tester in new company for 6 months. Inspiration Actually before getting a new job as pentester I would like to take CEH or ECSA certificate. But after do a new job, my three colleagues have OSCP and they are my model. All of them have an awesome skill. Then I try to find more information about OSCP and found that OSCP is very difficult to pass, no exam dump, no one answer you. Although I have a few experience on hacking but I think I can try and TRY HARDER. OSCP Course There are two course manual, pdf and video that are dependent. After I got them I tried to read from PDF only but not enough, many technics ar

Patch Management และ Hardening คืออะไร/ ยังไง พร้อมวิธีการ ตอนที่ 1

post นี้ก็เช่นเกียวกับโพสต์อื่นๆที่ ผู้เขียนเขียนขึ้นจากประสบการณ์การทำงานนะครับ ส่วนในเรื่องของ ISO27001 ทางผู้เขียนยังไม่รู้ครอบคลุมขนาดนั้น ขอยังไม่กล่าวถึง คงได้เขียนหลังจากสอบ CISSP ได้แล้ว (ตอนนี้ยังอยู่ในวงการ Pentest อยู่เลยจ้า) คืออะไร ? Patch Management และ Hardening  -  เป็นส่วนนึงของ configuration management process ใน ISO27001 และมาตรฐานทางด้านความปลอดถัยอื่นๆ ด้วย  ทำไมต้องมีการทำ patch และ hardening เรื่องของ Patch management จริงๆ ก็จะเกี่ยวข้องกับการทำ Hardening นะละ นั่นคือทำเพื่อปิดช่องโหว่ให้น้อยที่สุดเพื่อลดความเสี่ยงที่จะถูกโจมตีจากผู้ไม่ประสงค์ดี มันก็ไม่ดีใช่ไหมละ ถ้าระบบของเราโดนโจมตี ซึ่งอาจจะเป็นในแง่ของการขโมยข้อมูล หรือที่องค์กรส่วนใหญ่รับไม่ค่อยได้คือการโดน dos จนทำให้อุปกรณ์ไม่สามารถให้บริการต่อได้ ก็เรื่อง Availability ไง ในบางบริษัทที่มีการทำ transaction เกี่ยวกับเงินนี่ เขาคิดค่าเสียหายเป็นนาทีเลยนะ ล่มแค่ครึ่งชั่วโมงก็เสียหายหนักแล้ว กระบวนการการทำ Patch กับ hardening ก็จะมีดังนี้ คือ เขียน flow ให้ดูกันง่ายๆ อ่านคำอธิบายต่อได้ด้า