根据以前的发现,windowsNT密码虽然不象Windows95那样以简单加密形式包含在一个文件里面,而是一些杂乱的暗码,分别藏在7个不同的地方。这篇最新发表的文章告诉我们WindowsNT密码隐藏的第八个地方。Date: Mon, 22 Feb 1999 11:26:41 +0100" Y% P8 o, I) \& _, F, q
! e$ p# [% ~* \From: Patrick CHAMBET <pchambet@club-internet.fr>
7 O: @, A4 C) y
4 b1 R' s7 s5 ~/ dTo: sans@clark.net0 [, {1 M0 E/ e2 c1 R5 G
Subject: Alert: IIS 4.0 metabase can reveal plaintext passwords
) D0 n4 }9 ]# z @2 z! f# M8 LHi all,! H$ K+ N' N1 r) t
We knew that Windows NT passwords are stored in 7 different places across x5 ?, ^- p1 o4 h& c
the system. Here is a 8th place: the IIS 4.0 metabase.
* f% o* L2 S$ _% |- H+ W- ]IIS 4.0 uses its own configuration database, named "metabase", which can: x* ], G. x& Q4 Y, t8 O9 b7 q
be compared to the Windows Registry: the metabase is organised in Hives,
: f" ^6 Q+ g( C) y5 K. n# mKeys and Values. It is stored in the following file:8 x. O( d8 O% \, ~- C
C:\WINNT\system32\inetsrv\MetaBase.bin
8 U% b" Q3 Z! a" T# s5 F/ h1 zThe IIS 4.0 metabase contains these passwords:
5 I& m% j- D) }+ n( Q- IUSR_ComputerName account password (only if you have typed it in the% k" S: s2 W4 x( c/ n4 p9 |. `
MMC) c0 v& G& ?+ ?" S' V
- IWAM_ComputerName account password (ALWAYS !)- ^/ L: R! V+ S
- UNC username and password used to connect to another server if one of( K1 K9 X3 f9 ?4 G* _
your virtual directories is located there.0 g8 q' ]$ E% e9 S; u n- ^! I
- The user name and password used to connect to the ODBC DSN called& v/ c2 ]2 Z2 i; a& M, T
"HTTPLOG" (if you chose to store your Logs into a database)./ a0 o' l( D( g& x
Note that the usernames are in unicode, clear text, that the passwords are
* A N4 o9 Z5 v( isrambled in the metabase.ini file, and that only Administrators and SYSTEM6 N( p* ~$ e( d, R, q I
have permissions on this file.
, U# Q8 u, Y/ I8 OBUT a few lines of script in a WSH script or in an ASP page allow to print- |9 d, b5 t- s4 ~: {0 L
these passwords in CLEAR TEXT.
/ I% k& C( I5 d4 ~0 k i: ~: AThe user name and password used to connect to the Logs DSN could allow a3 A- D8 h( V# w2 c' n# T' [
malicious user to delete traces of his activities on the server.# F; ]. _& J0 q" Q
Obviously this represents a significant risk for Web servers that allow# w0 U6 N! `9 K9 i- Q( }8 s
logons and/or remote access, although I did not see any exploit of the
, G6 V u* _6 J7 Y4 \' Q! x# ]problem I am reporting yet. Here is an example of what can be gathered:* ?5 [# X, g0 N* f2 r' e
"
/ Y( E5 `( C! d5 D# f/ x, k3 @IIS 4.0 Metabase
' ^; _% S% I2 E$ q2 `- J$ n?Patrick Chambet 1998 - pchambet@club-internet.fr. Y' h1 [0 o U# i
--- UNC User ---
/ V0 y$ ~% a2 P8 B4 GUNC User name: 'Lou'6 l3 _0 n% y0 T( W% k" |
UNC User password: 'Microsoft'
: N+ X: ^) Y# a }" r2 \8 M5 k' v+ oUNC Authentication Pass Through: 'False'+ l( O- u7 L8 @0 j6 N
--- Anonymous User ---
3 ~' n9 U7 A9 g, n& P) ^" HAnonymous User name: 'IUSR_SERVER'4 c! G3 u4 u _+ R/ t# y3 @$ q
Anonymous User password: 'x1fj5h_iopNNsp'
+ |$ F) y7 M1 j( D5 t$ hPassword synchronization: 'False'
5 F- E3 K4 A4 h* j8 O--- IIS Logs DSN User ---, Z8 i- ]9 |/ r2 {
ODBC DSN name: 'HTTPLOG'
3 F0 L. l) {# m, n) p* G$ N7 |ODBC table name: 'InternetLog'' C2 \0 @7 h+ ?6 j0 ?
ODBC User name: 'InternetAdmin'
5 `( g0 D/ B7 T1 E* z2 s' aODBC User password: 'xxxxxx'
4 S. H+ |( m* @9 Y--- Web Applications User ---
6 D- m+ e8 }: Q) {6 b6 {, gWAM User name: 'IWAM_SERVER'
4 f2 v4 K* q" x! D3 b1 iWAM User password: 'Aj8_g2sAhjlk2'
1 H1 L) R) y) k0 o9 h3 ]Default Logon Domain: ''
4 ]) Z$ W o( b$ c"
1 w/ ~0 E0 I$ [2 sFor example, you can imagine the following scenario:
. `/ p7 a6 N$ ~; B& T1 @3 kA user Bob is allowed to logon only on a server hosting IIS 4.0, say7 A; b# f3 g/ \9 b5 c, ^' q4 N
server (a). He need not to be an Administrator. He can be for example
0 s( K" u0 D( Q! [an IIS 4.0 Web Site Operator. Then, he launches a WSH script that extracts
3 D9 S9 H/ O& J% Uthe login name and password of the account used to access to a virtual' I. P( Y: V+ | i
directory located on another server, say (b).; f; _2 x, V% [7 u
Now, Bob can use these login name and passord to logon on server (b).' j P6 ^1 y, s6 f1 N: D/ a
And so forth...# B% X4 @, G9 A4 ^, G
Microsoft was informed of this vulnerability.4 o! L: U3 E \
_______________________________________________________________________
5 V/ e7 ~3 B' IPatrick CHAMBET - pchambet@club-internet.fr
2 K3 | }* c* l( c6 b2 h' wMCP NT 4.08 Y$ F; ]- \$ i w
Internet, Security and Microsoft solutions
: k& k5 Y: Z4 x" ^e-business Services
0 w1 R6 }7 V/ J( B- p3 b3 @IBM Global Services$ ? c- v+ Q' t1 t# ]: A, k
|