1
peterr
Is session ID a problem ?
  • 2006/3/8 4:43

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Hi,

There was a security problem with osCommerce, if two users had the same session ID, so I'm wondering if that may be one area that the XOOPS core team look at, considering what happened recently.

The scenario in osCommerce would go like this. Robots would crawl a website and of course create a session ID, and the search results from a website would then show up in a number of search engines, with the session ID appended to the URL/URI. Now, what happens with osCommerce (they may have it fixed now, I don't know), is that potentially, two users can click on that url and have the same session ID. Then if one logs in, the other person can view the account details. It went something like that anyway.

Now, back to XOOPS, I see some search engines are doing this

Quote:

"GET /?PHPSESSID=e6833b4e641517ac18ef76215b69a94a HTTP/1.0"


and it then turns up in the search results for the website.

Is there a similar potential 'risk' with XOOPS, for two users to have the same session ID ??

I'm just thinking of constructive ways to tighten possible 'leaks'. :)

P
NO to the Microsoft Office format as an ISO standard.
Sign the petition

2
m0nty
Re: Is session ID a problem ?
  • 2006/3/8 4:55

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


yup.. old news but still crops up every now n then..

use cookies, and disable trans_sid in php.ini or htaccess etc, and that solves that problem somewhat..

plenty of topics on XOOPS about it if you enter phpsessionid into the search block.

3
peterr
Re: Is session ID a problem ?
  • 2006/3/8 5:46

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


I added this in .htaccess

php_flag session.use_trans_sid off


and the cookies were already set to 'on', here are the values from phpinfo()

Quote:

Local Value Master Value

session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid Off On


I can still do this ....

http://www.example.com/modules/wflinks/newlist.php?PHPSESSID=ae13f0f2d33dc138573157d429e15782

OR ...........

http://www.example.com/modules/xhld0/index.php?PHPSESSID=ae13f0f2d33dc138573157d429e15782

the first url example is what is in the serach engine results, so no doubt I will just have to wait until they do another crawl. From the web server logs, there are several url's that are causing the session ID to be appended, I just tried one, and now the session ID is not there. So, I'll test all the others, and just wait until the next crawls _and_ updates by these search engines.

The XOOPS admin/preferences main/general settings has"

use custom session - No

Thanks,

P
NO to the Microsoft Office format as an ISO standard.
Sign the petition

4
macmend
Re: Is session ID a problem ?
  • 2006/3/14 17:21

  • macmend

  • Quite a regular

  • Posts: 285

  • Since: 2004/2/27


in sorting out the terrible mess I have got in with my server, i find I am not allowed to use php flag entries in .htaccess as they bring 500 errors...is this a problem is there a way round it, it seems some php security on the host server now prohibits this??
Free Mac Support

Ordinary Wisdom

apache server with php sshexec turned on
xoops version 2.0.18.1 & 2.3.1
php version 5.2.5
mysql version 5.0.45

5
peterr
Re: Is session ID a problem ?
  • 2006/3/14 22:23

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


I _think_ if the server config doesn't let you add the php flag/values in .htaccess, then what you can do, is to have your own PHP.INI

The best to do is ask your hosting company, from memory that is what I had to do on another server, and found the best way to start was to copy the 'full' PHP.INI file into your site, and then make the changes.

P
NO to the Microsoft Office format as an ISO standard.
Sign the petition

6
peterr
Re: Is session ID a problem ?
  • 2006/3/15 0:18

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Despite the changes I've made, bots are still hitting the site with a GET like ...

Quote:

/index.php?PHPSESSID=0a9ba8ebd120481dd1c4e8f5c00fe710


looks like the only way to really fix it, is a mod_rewrite, to strip the session id from the URL. At presetn, even with the changes advised, the PHPSESSID is turning up in search engines.

P
NO to the Microsoft Office format as an ISO standard.
Sign the petition

Login

Who's Online

315 user(s) are online (190 user(s) are browsing Support Forums)


Members: 0


Guests: 315


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits