根据以前的发现,windowsNT密码虽然不象Windows95那样以简单加密形式包含在一个文件里面,而是一些杂乱的暗码,分别藏在7个不同的地方。这篇最新发表的文章告诉我们WindowsNT密码隐藏的第八个地方。Date: Mon, 22 Feb 1999 11:26:41 +0100
4 x5 I9 q, z+ z# I+ h3 T
! b, {% n/ S, G3 n. J, M/ aFrom: Patrick CHAMBET <pchambet@club-internet.fr>
; ~( s2 j! u" d R+ S7 z! V, k
/ U- X3 t/ [% |4 sTo: sans@clark.net
) I: b I ]* U9 C$ FSubject: Alert: IIS 4.0 metabase can reveal plaintext passwords
) [5 s" j6 ]2 D& n zHi all,
! e% M5 W0 K( N* | ^We knew that Windows NT passwords are stored in 7 different places across# {0 u- U. g$ k; r
the system. Here is a 8th place: the IIS 4.0 metabase.5 `' C; R$ d0 K
IIS 4.0 uses its own configuration database, named "metabase", which can
1 p# g$ p! q: k! nbe compared to the Windows Registry: the metabase is organised in Hives,
& }3 D0 ] B( ^ B) \8 L" \) qKeys and Values. It is stored in the following file:
- k9 N, Y' m! o2 k t# ?. z" YC:\WINNT\system32\inetsrv\MetaBase.bin
' O- n- q* S s# W$ X* QThe IIS 4.0 metabase contains these passwords:
, U5 p% \: d3 M7 J) C- IUSR_ComputerName account password (only if you have typed it in the
p/ R& y/ O2 `: H* [MMC)1 k) r" N$ x6 B9 [1 s/ B
- IWAM_ComputerName account password (ALWAYS !)2 [! w# Y* x% F- H
- UNC username and password used to connect to another server if one of5 a5 m2 x& v. X# I/ T1 _) B
your virtual directories is located there.
/ Z4 s! Z. D8 K N; p- The user name and password used to connect to the ODBC DSN called
8 q$ {; o8 r% `7 D8 J"HTTPLOG" (if you chose to store your Logs into a database).
' _7 d6 e! ^, ^7 tNote that the usernames are in unicode, clear text, that the passwords are* r9 s) l3 y( u, c
srambled in the metabase.ini file, and that only Administrators and SYSTEM; |6 e# k! o2 F) U( f5 Q$ w
have permissions on this file.3 C3 y5 J( P" t- B$ D% S/ l
BUT a few lines of script in a WSH script or in an ASP page allow to print
$ @- p& Z( u% d' S! B3 ^& i0 \these passwords in CLEAR TEXT.
1 {! |1 T9 `0 L xThe user name and password used to connect to the Logs DSN could allow a6 h" v4 z. [3 Q4 O
malicious user to delete traces of his activities on the server.
# F/ T/ k7 w$ e/ L- j6 j( I ]0 YObviously this represents a significant risk for Web servers that allow: Y6 L) Q- h9 o
logons and/or remote access, although I did not see any exploit of the0 h' h8 V* x0 r' Y9 H& q6 w
problem I am reporting yet. Here is an example of what can be gathered:4 Y6 X/ U& {$ e3 q( s4 x
"
) C3 L2 C) ^4 ~1 ~0 xIIS 4.0 Metabase
/ A6 s7 L' M! U+ |' P4 V?Patrick Chambet 1998 - pchambet@club-internet.fr
) i/ I' M4 A" a) F--- UNC User ---. t+ i3 W, r: D4 ~. _$ ^
UNC User name: 'Lou'
8 O" V/ n2 J; EUNC User password: 'Microsoft'- J3 a6 E* w8 [2 u8 _. u& E0 F
UNC Authentication Pass Through: 'False'
) b; y9 J- D6 |/ h1 m& W7 w) h! K% P--- Anonymous User ---
( E. e5 h3 y/ X! |4 \! ^* YAnonymous User name: 'IUSR_SERVER'
+ B+ m$ s) i/ c8 H3 g% FAnonymous User password: 'x1fj5h_iopNNsp'
; y- n( n. C w. a! vPassword synchronization: 'False'
# M( E$ N' P R" c3 k7 H$ v--- IIS Logs DSN User ---
% t8 b, r0 ~0 Z* B! g/ ]3 \4 g0 `8 V8 A0 iODBC DSN name: 'HTTPLOG'
5 C6 a/ g% i! g& QODBC table name: 'InternetLog'
; p* _% G/ }* C2 @, @0 [8 M4 iODBC User name: 'InternetAdmin') g9 W9 k1 I& u
ODBC User password: 'xxxxxx'
7 }0 X: G1 U: y. h- U: t8 x% B! {: M--- Web Applications User ---
% J+ U) B W4 W$ g& lWAM User name: 'IWAM_SERVER'& t; C9 `4 ]9 [( }* I
WAM User password: 'Aj8_g2sAhjlk2'! F3 X k$ J1 M, i, `; ]( f+ A
Default Logon Domain: ''5 X, s( h) z6 p F4 ^
") i* ]1 D' Q# }, _. C
For example, you can imagine the following scenario:
% m v$ p8 n0 ]5 {3 zA user Bob is allowed to logon only on a server hosting IIS 4.0, say
5 e( `2 S/ Q% g9 o- z* m" Sserver (a). He need not to be an Administrator. He can be for example
/ F2 ~" U$ X9 T+ |$ Man IIS 4.0 Web Site Operator. Then, he launches a WSH script that extracts
$ ]+ W. x) }( o- X. _the login name and password of the account used to access to a virtual
7 c, s5 @' o. n1 Hdirectory located on another server, say (b).2 }: V9 q; H3 a0 H5 ^ [7 ?5 M. b1 Z7 R9 B
Now, Bob can use these login name and passord to logon on server (b)., p9 w( q4 L" M1 e
And so forth.../ h) e, R, z& Y, b: g1 Q& x
Microsoft was informed of this vulnerability.( M# w Z4 d3 l8 f; d: A2 l9 C" K
_______________________________________________________________________
9 u# T; y. n; ^. l$ gPatrick CHAMBET - pchambet@club-internet.fr+ M1 ~; U4 u1 n) ^, B/ f0 o6 S
MCP NT 4.04 h" c k1 h5 w: V4 x
Internet, Security and Microsoft solutions
^# g8 D9 y0 h: r8 [8 Q% `0 }4 Fe-business Services
- \/ r R9 r6 H' X! n- k5 _IBM Global Services
$ r! I6 ]) k$ T( h6 k3 O |