发新话题
打印

[转载]Gurgens Guest Book密码数据库漏洞

[转载]Gurgens Guest Book密码数据库漏洞

文章作者:basher13 <basher13@linuxmail.org>

Subject:
" Password Database Vulnerability "

Vulnerable version:
Guest Book 2.1

Description:
Guest Book is a complete solution which requires none or very little effort to set up and
match existing website configuration. Control Panel with "Virtual Designer" allows
complete Guest Book design build on the client side
The idea behind this 揋uest Book?is, to store message records in a text file.
Although, compare to ADO, it&#39;s a bit complicated to retrieve and set individual
records in the text file, this method seems to be quicker.Messages are stored in
a text file 揼uestrecord.txt? This file if fully administrable through 揳dmin.asp ?br /> page.

Vulnerability:
The application has stored database for Administration on the directory called
&#39;db/&#39;,uses filetype .DAT extention as &#39;Genid.DAT&#39;.The credentials are stored encrypted
in another text file "Genid.dat".A vulnerability on this application
that make password can be take by browser(download),then use program encryption
to descrypt the password/username .The password and username was encrypted and
save it as &#39;Genit.DAT&#39;.

Sample source:

ElseIF flag = 1 then
Set objFile = CreateObject("Scripting.FileSystemObject")
Password = Trim(Request.form("Password"))
UserID = Trim(Request.form("UserID"))
passFile = server.mappath("db\Genid.dat")&#39;A vulnerable line
Set passGet=objFile.OpenTextFile(passFile, 1)

DUserID = passGet.ReadLine
DecryptUserID = CryptText(DUserID, "$u@gess", True)
DPass = passGet.ReadLine &#39;String "$u@gess" is a crypt key
DecryptPassword = CryptText(DPass, "$u@gess", True)
passGet.Close

Here a vulnerable Administration Database;

passFile = server.mappath("db\Genid.dat")

Execute URL &#39;http://localhost/db/Genit.dat&#39;,then we go to download files
,use notepad to open file;

User name :
֤����?amp;#65533;���� <-------
|
Password = |
�����?amp;#65533; <------|
|
--------------------------
|
|
|
------ > &#39;Open &#39;Genid.dat&#39; on directory &#39;db&#39; ,
then use SEDT tools to sure descrypt the files &#39;Genit.dat&#39;

Solution:
Modify or rename "db\Genid.dat" to another name,sample:
(..)
UserID = Trim(Request.form("UserID"))
passFile = server.mappath("db\Genid.dat")&#39;A vulnerable line
&#39;server.mappath("db\Genid.dat") modify to server.mappath("somepage\filename.dat")
(..)
Other else Change String "$u@gess" it at your will. But make sure it&#39;s the same
on the "reset.asp" page.

Vendor URL:
http://www.gurgensvbstuff.com

Security Audit Tools:
http://user.7host.com/stardawn/files/sedt.zip
曾几何时,有人对我说:装B遭雷劈。我说:去你妈的。于是,这个人又对我说:如果再说脏话,上帝会惩罚你的。我说:我操上帝。结论:彪悍的人生不需要上帝。

TOP

发新话题