High Security Risk in Ver. phpwcms 1.1-RC2_2004-01-10a

Use GitHub to post bug reports and error descriptions for phpwcms. Describe your problem detailed!
Florian
Posts: 119
Joined: Wed 19. Nov 2003, 16:50
Location: Hamburg
Contact:

High Security Risk in Ver. phpwcms 1.1-RC2_2004-01-10a

Post by Florian »

Security Bug Report

Risk: VERY HIGH
Report Date: 10-01-2004 17:19 CET
Expected Version: phpwcms 1.1-RC2_2004-01-10a AND up
Affected spot: phpMyAdmin
Location of the spot: ./include/inc_ext/phpMyAdmin/<all data within>
Status: pending


Summary:
The phpmyadmin directory is NOT secured by the 'checklogin.inc.php' which is included by the phpwcms.php which controlls the adminrights within the admin menue. Anyone on the web who knows about the struckture behind phpwcms can access the directory by typing in his browser the URL http://yoururl.tld/include/inc_ext/phpMyAdmin/. He will easyly access the mySQL Database which stores ALL DATA for phpwcms and is allowed to change and/or delete content.

Workaround:
Install the Patch: http://osdn.dl.sourceforge.net/sourcefo ... 01-10b.zip

Recommendation:
Install the security bugfix.
Last edited by Florian on Sat 10. Jan 2004, 19:21, edited 1 time in total.
User avatar
Oliver Georgi
Site Admin
Posts: 9919
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Fuck - you are right. I forgot. I do it right now.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

ups
http://www.studmed.dk Portal for doctors and medical students in Denmark
User avatar
Oliver Georgi
Site Admin
Posts: 9919
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Is solved. (I hope)

Sorry!

regards
Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

Oliver Georgi wrote:Is solved. (I hope)

Sorry!

regards
Oliver
well therefor it is nice with a big forum :lol:
http://www.studmed.dk Portal for doctors and medical students in Denmark
Florian
Posts: 119
Joined: Wed 19. Nov 2003, 16:50
Location: Hamburg
Contact:

Post by Florian »

Mybe we should set up a "Bugbuster" like written above by me for further Bug, which "maybe" appers (of corse I don't hope :D ). So we can do a quick bugfix and everybody knows what to do.

Cheers,
Florian
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

Florian wrote:Mybe we should set up a "Bugbuster" like written above by me for further Bug, which "maybe" appers (of corse I don't hope :D ). So we can do a quick bugfix and everybody knows what to do.

Cheers,
Florian
yeah and maybe a mailing list?

so you automatic rezeive bug repports ? right now you only rezeive a email if you have created or replyed to the topic....!!

Eg, you could install this mod - it let you receive mails when there are new posts in a given forum....it is still a alpha mod but.....

http://www.netclectic.com/forums/viewtopic.php?t=4402
http://www.studmed.dk Portal for doctors and medical students in Denmark
cet
Posts: 25
Joined: Sun 7. Dec 2003, 14:58
Location: Garmisch-Partenkirchen

Post by cet »

The Fix does not solve the prob on my server. (Yes, I have cleared my cache and killed the cockies).

Any idea?
Es ist unmöglich, Staub aufzuwirbeln, ohne dass einige Leute husten!
Erwin Piscator
User avatar
Oliver Georgi
Site Admin
Posts: 9919
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Cet, what do you think is not solved?

Try this:

1) Close all browser windows - maybe logoff backend
2) Then try to open again: http://www.myphpwcms.com/include/inc_ext/phpMyAdmin

What happens?

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
cet
Posts: 25
Joined: Sun 7. Dec 2003, 14:58
Location: Garmisch-Partenkirchen

Post by cet »

Hi Oliver,

I am in the phpMyAdmin-Section.

Is it right to fill in the DB values in "setup/setup.conf.inc.php" and in "include/inc_conf/conf.inc.php" ?
Es ist unmöglich, Staub aufzuwirbeln, ohne dass einige Leute husten!
Erwin Piscator
vvo
Posts: 50
Joined: Sun 9. Nov 2003, 14:07
Location: Netherlands

Post by vvo »

I can confirm that the security risk still exists.
I'm running phpWCMS on a Cobalt RAQ4 and although I closed all my browser windows, cleared the cookies and the cache ...I still can access phpmyadmin ...and not being logged in the backend of phpwcms.

Johan.
User avatar
Oliver Georgi
Site Admin
Posts: 9919
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

OK - I will extend the patch again by also checking against db.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
Oliver Georgi
Site Admin
Posts: 9919
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Can somebody with still existing security problems test the following new patch file
http://www.phpwcms.de/docu/config.inc.developer.zip

extract and put it into:
include/inc_ext/phpMyAdmin

It uses same authentication check as phpwcms itself.


Regards
Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
vvo
Posts: 50
Joined: Sun 9. Nov 2003, 14:07
Location: Netherlands

Post by vvo »

Oliver,
I think it is working now ....I did two tests.

1) on a new pc (kids pc ..never used phpwcms on that system before).
a direct link to phpmyadmin redirects to the root of the domain ...

2) another pc. Logged into backend and started phpmyadmin. Then logged out and made a direct link to phpmyadmin. Again I was redirected to the root of the domain.

Johan.
cet
Posts: 25
Joined: Sun 7. Dec 2003, 14:58
Location: Garmisch-Partenkirchen

Post by cet »

It also works for me. Danke für den schnellen Fix.
Es ist unmöglich, Staub aufzuwirbeln, ohne dass einige Leute husten!
Erwin Piscator
Locked