日前,国外安全研究组织Nikita Tarakanov称在Symantec PGP Whole Disk Encryption(完整磁盘加密软件)中发现0day漏洞,该软件的内核驱动程序pgpwded.sys包含一个覆盖任意内存的漏洞,可执行任意代码,受影响的软件版本是Symantec PGP Desktop 10.2.0 Build 2599。
! G8 g& ]5 R0 Z' u8 C' }3 g) C3 D8 Y% k
Symantec通过博客文章证实该版本软件确实存在安全问题,但是利用起来比较繁琐,并且仅限于运行在Windows XP和Windows 2003的系统,成功利用该漏洞需要有计算机本地访问权限。' j3 M9 R% ]1 N4 D- c# p) T2 N
, J' O' w+ B9 j# N
研究员Kelvin Kwan称“该漏洞触发场景非常困难,成功利用必须进入一些错误状态,但是成功利用的话可能允许攻击者执行任意代码,获取更高级别的权限”。该漏洞详细细节如下:
9 S7 _& O) I: t {5 V
# Q* _% V/ W( M2 s8 F2 D$ A! V / L( L1 n# A+ l* s! Y" |& ]
) s1 v6 v7 @, e5 ?7 |! Sfunction at 0x10024C20 is responsible for dispatching ioctl codes:* ^- F; M7 L/ `: B+ Z
* u; @: q0 ?+ c: n.text:10024C20 ; int __thiscall ioctl_handler_deep(int this, int ioctl, PVOID inbuff, unsigned int inbuff_size, unsigned int outbuff_size, PDWORD bytes_to_return)
; s, J9 ] G1 u/ n- L; `.text:10024C20 ioctl_handler_deep proc near ; CODE XREF: sub_10007520+6Ap2 H/ k0 k' D! n& @: ]
.text:10024C20
8 ]8 W# j7 |# n x# `.text:10024C20 DestinationString= UNICODE_STRING ptr -3Ch% a$ q/ v% s0 D* r8 R7 Q
.text:10024C20 var_31 = byte ptr -31h
) h1 _- B- o9 T+ ?; G.text:10024C20 var_30 = dword ptr -30h: x9 q2 _! X( h$ a/ P2 w9 B
.text:10024C20 some_var = dword ptr -2Ch+ `$ E# L' Y, T Q4 h: n
.text:10024C20 var_28 = dword ptr -28h1 r: o' a6 H% v G5 [: w
.text:10024C20 var_24 = byte ptr -24h
. l2 ^1 p) n3 ?3 O c2 ]9 g.text:10024C20 var_5 = byte ptr -5$ Q) d8 i6 T: R" E/ s) o
.text:10024C20 var_4 = dword ptr -4
4 A4 m/ W2 t) m. r1 t" s t* g4 n.text:10024C20 ioctl = dword ptr 8
6 u0 R( y7 q8 v& j4 p, o, |.text:10024C20 inbuff = dword ptr 0Ch
' S2 f% q6 Z- e1 n.text:10024C20 inbuff_size = dword ptr 10h
' U8 ~) d6 [7 _8 q% M; Y+ ~) o.text:10024C20 outbuff_size = dword ptr 14h6 _2 }5 a% o( r8 e" c# p0 S
.text:10024C20 bytes_to_return = dword ptr 18h
0 R1 g) J* W; `/ @2 r* ~+ A: G.text:10024C20. z6 d8 y! [/ o) U( L
.text:10024C20 push ebp
; c, \) O) ^6 F( J.text:10024C21 mov ebp, esp
/ p: }3 ^: t0 p% y.text:10024C23 sub esp, 3Ch
0 D5 R8 D' M3 u: u! q" ^8 R.text:10024C26 mov eax, BugCheckParameter2% ^& p2 v Y! ~& B. b0 c
.text:10024C2B xor eax, ebp
7 O- k; V) [& M i0 k.text:10024C2D mov [ebp+var_4], eax% U Y% {/ k0 D" e* C4 @+ _
.text:10024C30 mov eax, [ebp+ioctl]
. o. c* |+ _2 d, N' f. i.text:10024C33 push ebx6 w& B- a7 t' u1 I% w/ `
.text:10024C34 mov ebx, [ebp+inbuff]
6 t- V, K/ T" m6 L- k& `2 m- }.text:10024C37 push esi+ M/ e2 J4 P: C, L( C. H& d
.text:10024C38 mov esi, [ebp+bytes_to_return]8 R5 X2 r r4 V* H8 o6 S
.text:10024C3B add eax, 7FFDDFD8h
- F- J6 F0 s- X2 o/ y8 G; ?8 y; x.text:10024C40 push edi
! \! C# g0 l8 `9 U5 K# A.text:10024C41 mov edi, ecx' v0 K; x5 z5 l f+ P, t r p
.text:10024C43 mov [ebp+some_var], esi
: f, R9 `2 {: E.text:10024C46 mov [ebp+var_28], 0* J6 o! u2 a" B1 v
.text:10024C4D cmp eax, 0A4h ; switch 165 cases
7 |3 `' g8 K/ |7 [( |$ g.text:10024C52 ja loc_10025B18 ; jumptable 10024C5F default case
. n5 r1 _0 q |6 [ Y.text:10024C58 movzx eax, ds:byte_10025BF0[eax]
! M M0 s" o5 [ o% I- ].text:10024C5F jmp ds ff_10025B50[eax*4] ; switch jump9 ?! H9 k+ v7 E! P* z! A
4 ]( x0 w: h2 F[..], ]* c' w" y/ h1 v8 d
; ]2 x- c& r: U' O b4 O
0x80022058 case: no check for outbuff_size == 0! <--- FLAW!
& {+ I, T; G& W/ M
0 f6 d7 T9 D. Q.text:10024F5A lea ecx, [edi+958h]
8 N5 |4 p" z- `; ~; m.text:10024F60 call sub_100237B0
; [2 m% w4 V6 k$ \1 Y.text:10024F65 mov [ebp+some_var], eax
/ V; d" g+ S# P( J# G9 _.text:10024F68 test eax, eax
, V* e. q; v/ s- j3 V6 Y$ t.text:10024F6A jnz short loc_10024F7D
& U; y6 S0 l. M+ q. _1 P.text:10024F6C mov dword ptr [ebx], 0FFFFCFFAh
/ w. A! x4 ?' r% |5 M.text:10024F72 mov dword ptr [esi], 10h <--- bytes to copy to output buffer& K; a6 p; q4 U
" F2 j) d$ d8 w: O: b- ~
next in IofComplete request will be rep movsd at pointer, that is under attacker's control7 S. f6 [9 R% [
! E5 \) A$ H8 d4 v+ DDue the type of vulnerability (METHO_BUFFERED with output_size == 0) exploit works only on Winows XP/2k3, cause in later Windows OS I/O manager doesn't craft IRP if ioctl is METHOD_BUFFERED and output_size == 0. 2 ~- M9 K8 ^4 u. B
; [8 ?$ N' d# H- N
Symantec表示在2月份的补丁包中修复该漏洞。
7 Q* e; b$ [) S/ B0 f" u7 U+ b5 H+ ~) s* [) @
相关阅读:
+ \( K( K; y1 O, r S$ u' m) z5 Z" b$ K8 G
赛门铁克的 PGP Whole Disk Encryption 为企业提供了全面的高性能完整磁盘加密功能,可对台式机、笔记本电脑和可移动介质上的所有数据(用户文件、交换文件、系统文件、隐藏文件等)进行完整磁盘加密。该完整磁盘加密软件可让数据免遭未经授权的访问,从而为知识产权、客户和合作伙伴数据提供强大的安全防护。受保护的系统可由 PGP Universal Server 集中管理,这就简化了部署、策略创建、分发和报告过程。: W/ z! x1 A& |, R. `$ f! V( A
5 d" n# E1 m* k! Z# ?) R/ o
|