根据以前的发现,windowsNT密码虽然不象Windows95那样以简单加密形式包含在一个文件里面,而是一些杂乱的暗码,分别藏在7个不同的地方。这篇最新发表的文章告诉我们WindowsNT密码隐藏的第八个地方。Date: Mon, 22 Feb 1999 11:26:41 +0100
% l) D/ \' {0 X* P' P
( X% [7 F$ V" f3 z; O/ C' yFrom: Patrick CHAMBET <pchambet@club-internet.fr>1 m! ^* L' Y# n1 k4 _) \2 F/ H
! ^5 \( s9 M& Q3 c
To: sans@clark.net
4 r) `* d* T! p/ {; ?( HSubject: Alert: IIS 4.0 metabase can reveal plaintext passwords* E/ F' w& y4 |3 S- e
Hi all,
% q7 k2 Y: ~% q# PWe knew that Windows NT passwords are stored in 7 different places across
) [( s9 m& J' t# W* F( Kthe system. Here is a 8th place: the IIS 4.0 metabase.. J) U* t4 |- J" a- ~5 D
IIS 4.0 uses its own configuration database, named "metabase", which can; _' I& t2 S: ~3 \5 I
be compared to the Windows Registry: the metabase is organised in Hives,& i: D0 K3 ?2 |: i$ ^! R
Keys and Values. It is stored in the following file:; F' Y, o8 M- |: C1 [
C:\WINNT\system32\inetsrv\MetaBase.bin
1 K7 T9 t7 ~. d9 W8 LThe IIS 4.0 metabase contains these passwords:1 ^- R+ d: E1 \6 ?7 [4 u$ \
- IUSR_ComputerName account password (only if you have typed it in the8 O: F, A P6 M1 v: T4 w
MMC)* m% v! e# G: d5 w0 ~! v
- IWAM_ComputerName account password (ALWAYS !)% d7 l% v5 H$ x# V* H
- UNC username and password used to connect to another server if one of. Y4 E) b: Z3 a$ v0 z1 {% u: n
your virtual directories is located there.( g, [4 d/ L) Q: x, E
- The user name and password used to connect to the ODBC DSN called+ J0 T' r8 E/ A6 h) K% w, U1 I
"HTTPLOG" (if you chose to store your Logs into a database).% z% D: i. T) g ~) D y/ s
Note that the usernames are in unicode, clear text, that the passwords are
# U2 g9 R! b! A. _$ c9 z$ Usrambled in the metabase.ini file, and that only Administrators and SYSTEM
5 _6 [# A5 R% L& P1 _- E$ Rhave permissions on this file.4 O- P# k6 X/ m+ M+ t0 ^
BUT a few lines of script in a WSH script or in an ASP page allow to print1 x4 n; e: l) z" T2 E# e4 B4 e5 Y
these passwords in CLEAR TEXT.; j2 @; [3 s6 S5 Q4 R4 _- n
The user name and password used to connect to the Logs DSN could allow a& W/ Q2 K1 A. z' G$ Z9 p
malicious user to delete traces of his activities on the server.
. \: o' o9 f+ q9 O' |Obviously this represents a significant risk for Web servers that allow
) {- ]3 D( g2 ~3 W: _' Flogons and/or remote access, although I did not see any exploit of the
9 L- v. n" q N, I* H) m- m8 eproblem I am reporting yet. Here is an example of what can be gathered:
2 B. v4 r4 Z3 e- h( I/ h"8 D& u% D+ @, M/ z0 y3 E+ g( c8 _
IIS 4.0 Metabase
, Q% r2 r: Y5 d: q; U4 h?Patrick Chambet 1998 - pchambet@club-internet.fr& ]! r* r0 L/ \6 P
--- UNC User ---, q6 a9 L9 D) L, a2 A' g
UNC User name: 'Lou'
' \# i1 _! S: y7 |- KUNC User password: 'Microsoft'
5 ^$ ~$ i- F& m+ p0 h; Z6 P2 `UNC Authentication Pass Through: 'False'
3 L0 ]% w0 H6 _5 @8 h--- Anonymous User ---
8 D& r4 c% b6 X; P- i+ S( \Anonymous User name: 'IUSR_SERVER'( R2 S$ x# G2 w2 r9 u
Anonymous User password: 'x1fj5h_iopNNsp'8 `3 V9 G7 a) i! s" [# F
Password synchronization: 'False'$ o5 E- k, @- |2 x% ~3 V
--- IIS Logs DSN User ---' z* z" o& _6 E0 r" [7 H
ODBC DSN name: 'HTTPLOG'
6 F8 D/ u* z# A- }4 L+ eODBC table name: 'InternetLog'
; d: h+ }7 {: ?" p" k1 OODBC User name: 'InternetAdmin' f4 a. G- F# a" X4 q, V1 u
ODBC User password: 'xxxxxx'" @9 M( e* W* D
--- Web Applications User ---# j6 K. s* r- o
WAM User name: 'IWAM_SERVER'2 p: t! e2 |# ~9 ^4 o+ `1 u- j
WAM User password: 'Aj8_g2sAhjlk2'. o/ \4 g. j: M' ^ B! {6 V
Default Logon Domain: ''
, C- ^$ w' W/ l4 L2 h/ T/ {2 r"( [) @3 d2 u# _4 f5 m
For example, you can imagine the following scenario:! v, ]! i8 a2 [% N4 z5 ?8 m
A user Bob is allowed to logon only on a server hosting IIS 4.0, say
$ g/ X# Z7 o3 X/ Q8 O2 k0 K+ [server (a). He need not to be an Administrator. He can be for example; d* I/ V3 H4 u; ]
an IIS 4.0 Web Site Operator. Then, he launches a WSH script that extracts
: V) H9 y3 q$ k9 d5 vthe login name and password of the account used to access to a virtual' g8 g0 w4 D0 O1 [/ [& Q/ a4 B
directory located on another server, say (b)., G2 a* K' j r* b
Now, Bob can use these login name and passord to logon on server (b).% ~/ G0 |! n! m
And so forth...
( d/ N+ V% ]: K) e5 b+ I- \Microsoft was informed of this vulnerability./ @4 j1 j9 K+ O/ |
_______________________________________________________________________6 q# ~ m1 v) s" N# v& v
Patrick CHAMBET - pchambet@club-internet.fr$ P O8 ~3 U, B) a; w& l6 ~0 u
MCP NT 4.0
7 i( r% T0 V" P* z; m* yInternet, Security and Microsoft solutions5 ^7 E& @7 p3 w
e-business Services
e/ K1 v$ ~ ~3 N) aIBM Global Services
( [& `( Q: J- @! b3 { |