找回密码
 注册

QQ登录

只需一步,快速开始

NT的密码究竟放在哪

[复制链接]
发表于 2011-1-12 21:01:17 | 显示全部楼层 |阅读模式
根据以前的发现,windowsNT密码虽然不象Windows95那样以简单加密形式包含在一个文件里面,而是一些杂乱的暗码,分别藏在7个不同的地方。这篇最新发表的文章告诉我们WindowsNT密码隐藏的第八个地方。Date: Mon, 22 Feb 1999 11:26:41 +0100% r# u- ~+ o3 P" K9 f' Y

$ j, ?8 J+ c$ y9 gFrom: Patrick CHAMBET <pchambet@club-internet.fr>6 a7 b. t) Q$ d( z

' E: S" E" F9 x: w! _  y: V1 h- MTo: sans@clark.net2 ]3 V' J9 G' @# ?1 u0 _
Subject: Alert: IIS 4.0 metabase can reveal plaintext passwords2 p% L& m. F7 H9 e: g
Hi all,
! I8 }* C, T, W, E! zWe knew that Windows NT passwords are stored in 7 different places across6 u- s" |' O6 i
the system. Here is a 8th place: the IIS 4.0 metabase.8 y2 y8 V  m+ N* o9 o  C
IIS 4.0 uses its own configuration database, named "metabase", which can
8 G) t, w: {" qbe compared to the Windows Registry: the metabase is organised in Hives,
- }# f4 ^* B( p, C  I* xKeys and Values. It is stored in the following file:3 h2 }/ D, v( }1 F. }# W
C:\WINNT\system32\inetsrv\MetaBase.bin
/ y# @% h( R  I, \2 m& jThe IIS 4.0 metabase contains these passwords:
" J# n2 D5 R  F" ^! ]& m- IUSR_ComputerName account password (only if you have typed it in the
$ l4 C% J* c& L" N% \3 vMMC)
- T9 o$ i! I+ K" @- IWAM_ComputerName account password (ALWAYS !)/ f5 ]0 c, X. \8 H0 W, b  r* |
- UNC username and password used to connect to another server if one of
* \) N. [* q+ O3 W% b. N2 [- X0 ayour virtual directories is located there.+ h0 p# h1 ]# |5 F. B0 k& |! E
- The user name and password used to connect to the ODBC DSN called
" M- B1 R5 @, L5 \4 a"HTTPLOG" (if you chose to store your Logs into a database).8 D& m; ^- G" w; h4 I5 `
Note that the usernames are in unicode, clear text, that the passwords are: Z! |' l- K; A3 _8 E" n
srambled in the metabase.ini file, and that only Administrators and SYSTEM! d- k$ x  d( ^! G
have permissions on this file.
3 O7 o4 F2 i' w* K, S" @BUT a few lines of script in a WSH script or in an ASP page allow to print
- X; n3 y- w6 [: x2 Sthese passwords in CLEAR TEXT.1 a1 t8 m: l  Y2 j
The user name and password used to connect to the Logs DSN could allow a2 _  ]3 @& ?) x) E
malicious user to delete traces of his activities on the server.' |2 `- ~) q+ S; K3 M3 f
Obviously this represents a significant risk for Web servers that allow
) E8 t1 O) [# j* x( t$ v' m8 w1 k- G9 Nlogons and/or remote access, although I did not see any exploit of the
  X# u$ I, T& c5 s% c. j9 wproblem I am reporting yet. Here is an example of what can be gathered:  y6 Z7 F$ J0 y
"
% C8 ?4 Y" y' ?. T  _7 O7 XIIS 4.0 Metabase) b: ~; w; B* v6 z+ l, q
?Patrick Chambet 1998 - pchambet@club-internet.fr
3 v' h' }! ^+ d4 \+ j$ ~--- UNC User ---( u9 W6 j, y) }8 y5 ~, b
UNC User name: 'Lou'
9 ~% k. V& K# j& _6 u$ Z3 BUNC User password: 'Microsoft'
* e  L! k0 b3 g' J9 m# h  xUNC Authentication Pass Through: 'False'
0 ^! N: y3 h8 H0 R. k, O3 F$ [--- Anonymous User ---: N" ~4 ^5 n& n, Q) h" f2 R
Anonymous User name: 'IUSR_SERVER': m, P$ m) n+ c$ ]. u0 S
Anonymous User password: 'x1fj5h_iopNNsp'
% E* n7 `4 e4 D0 \( oPassword synchronization: 'False'
6 S' i' q7 v3 r& \9 ^--- IIS Logs DSN User ---, {2 ~- Z. b0 d6 y  X  _
ODBC DSN name: 'HTTPLOG'
% l9 {8 \; n& \% N9 t( p! xODBC table name: 'InternetLog'' {" G' n9 `4 {
ODBC User name: 'InternetAdmin'9 D5 p5 W% Z1 R
ODBC User password: 'xxxxxx'
9 B6 g  H3 R' g--- Web Applications User ---
6 g* K! W, l2 |2 b: O8 e$ y, uWAM User name: 'IWAM_SERVER'
: R9 S4 C2 U1 [0 t) zWAM User password: 'Aj8_g2sAhjlk2'
% a) \5 e$ `3 o/ [9 R. k& O, v8 p! uDefault Logon Domain: ''7 X# }/ _- [8 k* i
"
% c( ?; _$ R  C9 _7 TFor example, you can imagine the following scenario:  u7 \  z, B" |; S. d  B& a7 D
A user Bob is allowed to logon only on a server hosting IIS 4.0, say
0 N& c* F9 f! Y9 ^- h+ `server (a). He need not to be an Administrator. He can be for example
6 Z2 N$ M0 n5 f, J+ b! ~an IIS 4.0 Web Site Operator. Then, he launches a WSH script that extracts
, D' x/ i* F5 S# D9 Jthe login name and password of the account used to access to a virtual
) j! s7 ?( `1 q! B- b% cdirectory located on another server, say (b).$ n+ ?; a) _2 C
Now, Bob can use these login name and passord to logon on server (b).; t7 [- k! @0 F$ W. D1 V" U
And so forth...
3 o. |! \2 W& L% |' p# x  WMicrosoft was informed of this vulnerability.
& i. e+ u7 E) J( l3 t. K# S7 L: }_______________________________________________________________________" p( b# s9 i/ ]
Patrick CHAMBET - pchambet@club-internet.fr2 O- @7 `  M0 \! Q6 ?" M3 P
MCP NT 4.0
0 B: R; |0 r5 _3 M- E0 V4 b8 T  A$ KInternet, Security and Microsoft solutions7 q! p- I9 F$ l* U- @
e-business Services
. ^9 x; {, b7 b! r5 T) _7 wIBM Global Services5 i9 E0 H0 H; J! q0 {+ h4 ^
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|本地广告联系: QQ:905790666 TEL:13176190456|Archiver|手机版|小黑屋|汶上信息港 ( 鲁ICP备19052200号-1 )

GMT+8, 2026-7-30 01:37

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表