SQL Injection Vulnerability

Phoca Gallery - image gallery extension
Iconify
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 04 Jul 2010, 21:43

SQL Injection Vulnerability

Post by Iconify »

SOS
A new vulnerability has been discovered
http://www.exploit-db.com/exploits/14207/
Iconify
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 04 Jul 2010, 21:43

Re: SQL Injection Vulnerability

Post by Iconify »

Really? :)
Are you sure? :idea:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: SQL Injection Vulnerability

Post by Jan »

Hi,

it is under supervision.

From the url which is taken as exploit:
http://server/path/index.php?option=com ... es&Itemid=[SQL Injection]

I cannot find any not protected Itemid section in Phoca Gallery:

Categories View:
::view.html.php
- line 155 - JRequest::getVar('Itemid', 0, '', 'int') - protected by integer
:: there is no controller for this view
:: model does not include any itemid request

PhocaGalleryRoute Class:
Both codes:

Code: Select all

$currentItemId    = JRequest::getVar('Itemid', 0, '', 'int');
     
      if(!$items) {
         return JRequest::getVar('Itemid', 0, '', 'int');
      }
are protected by integer.

So for now I see no place where the exploit can be used.

I will do more tests (but I looked at the whole categories view, route helper file and all the libraries).


Jan
If you find Phoca extensions useful, please support the project
Klementz
Phoca Member
Phoca Member
Posts: 12
Joined: 10 Oct 2009, 18:39
Location: Canada
Contact:

Re: SQL Injection Vulnerability

Post by Klementz »

Jan wrote: So for now I see no place where the exploit can be used.
I will do more tests (but I looked at the whole categories view, route helper file and all the libraries).
Thank you. I will keep a watch on this thread in case anything turns up.
Iconify
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 04 Jul 2010, 21:43

Re: SQL Injection Vulnerability

Post by Iconify »

Nice.
Maybe it is false alarm after all
pach
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 17 May 2010, 10:27

Re: SQL Injection Vulnerability

Post by pach »

I'll keep an eye on this thread too !
Some news ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: SQL Injection Vulnerability

Post by Jan »

Hi,

no, still didn't find any way how the Itemid can be abused and didn't get any information about successfully using of this exploit.

The exploit is not verified in the database of the exploits.

Jan
If you find Phoca extensions useful, please support the project
wojti
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 13 Dec 2009, 00:04

Re: SQL Injection Vulnerability

Post by wojti »

Welcome
Jan see this JSST article on how to prevent SQL injection attacks, with particular emphasis on part Preventing XSS Attacks http://developer.joomla.org/security/ar ... tions.html
Greetings
Last edited by wojti on 27 Jul 2010, 23:54, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: SQL Injection Vulnerability

Post by Jan »

Hi, maybe you don't understand the previous posts. I know how to protect the code. All Phoca Extensions are using the code which is described in the article. Some of Phoca Extensions are using more - e.g. Phoca Guestbook uses HTML purifier, etc.

The issue is reverse. There was not found any successful use of this exploit and I don't know any such. (means I don't know successful use of this exploit, but I know how to protect the code)

Jan
If you find Phoca extensions useful, please support the project
Xbase
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 20 Apr 2010, 01:50

Exploit Phoca SQL Injection Vulnerability

Post by Xbase »

Hello,
I use phoca gallery v2.7.3 and i have found a post on exploit-db .
i want to know the risk to use this component .
If this Exploit is Verified
and what is the solution to correct this Exploit.

Thx a lot for your answer i am very concerned about the problem

my source : http://www.exploit-db.com/exploits/14207/
Post Reply