?
Referenced as Related to: # 4200
avatar Hoffi1
Hoffi1
5 Jun 2014

With Joomla! 2.5.20 (3.x not tested) and an Internet Explorer (seems all versions) goto frontend Search page (com_search) and type in something like what's new. (apostrophe inbetween)
You will get a blank page / fatal error in libraries/joomla/environment/uri.php(194) where the request is interpreted as injection. Other browsers like Firefox work fine.

Cause:
IE sends searchword=what's%20new&ordering... whereas other browsers convert the apostroph into %27.

I think that's a bug in IE but also I think Joomla! should find a way to tolerate such wrong browsers. :wink:

avatar Hoffi1 Hoffi1 - open - 5 Jun 2014
avatar Hoffi1
Hoffi1 - comment - 15 Jun 2014

Hi all, any statement?

avatar Bakual
Bakual - comment - 15 Jun 2014

Can you test it with 3.x please?

avatar Hoffi1
Hoffi1 - comment - 15 Jun 2014

Tested with a simple 3.3.0 site. There it works, I get a result page.

avatar Bakual
Bakual - comment - 16 Jun 2014

Looks like in 3.3 JURI doesn't throw an exception anymore and just cleans the URL instead:
https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/uri/uri.php#L195
compared to the 2.5 counterpart:
https://github.com/joomla/joomla-cms/blob/2.5.x/libraries/joomla/environment/uri.php#L192

Can you test that and maybe do a PullRequest for it?

avatar Bakual
Bakual - comment - 16 Jun 2014

It was fixed in 3.x with 7c608a3

avatar Hoffi1
Hoffi1 - comment - 16 Jun 2014

Not sure. At the moment I'm very busy but mainly I don't understand the complete way through all the code. It would be no problem to change the code so that the apostrophe is accepted and the search works. But I don't know if then also bad injections would work too and we become a security issue.

avatar Bakual
Bakual - comment - 16 Jun 2014

I think, we can just backport #1312 to the 2.5 branch. If it's fine for 3.x, it should as well work for 2.5.

avatar zero-24 zero-24 - reference | - 31 Aug 14
avatar zero-24
zero-24 - comment - 31 Aug 2014

I think, we can just backport #1312 to the 2.5 branch. If it's fine for 3.x, it should as well work for 2.5.

@Bakual @Hoffi1
Backport: #4200

avatar brianteeman brianteeman - change - 31 Aug 2014
Status New Closed
avatar brianteeman
brianteeman - comment - 2 Sep 2014

Closing in favour of #4200 so the conversation is in one place

This comment was created with the J!Tracker Application at http://issues.joomla.org/.

avatar zero-24 zero-24 - close - 2 Sep 2014
avatar brianteeman brianteeman - change - 2 Sep 2014
Closed_Date 0000-00-00 00:00:00 2014-09-02 09:40:04
avatar brianteeman brianteeman - close - 2 Sep 2014
avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?
Removed: ?

Add a Comment

Login with GitHub to post a comment