SOS
A new vulnerability has been discovered
http://www.exploit-db.com/exploits/14207/
SQL Injection Vulnerability
-
Iconify
- Phoca Newbie

- Posts: 3
- Joined: 04 Jul 2010, 21:43
Re: SQL Injection Vulnerability
Really?
Are you sure?
Are you sure?
- Jan
- Phoca Hero

- Posts: 49299
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: SQL Injection Vulnerability
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:
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
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');
}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

- Posts: 12
- Joined: 10 Oct 2009, 18:39
- Location: Canada
- Contact:
Re: SQL Injection Vulnerability
Thank you. I will keep a watch on this thread in case anything turns up.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).
-
Iconify
- Phoca Newbie

- Posts: 3
- Joined: 04 Jul 2010, 21:43
Re: SQL Injection Vulnerability
Nice.
Maybe it is false alarm after all
Maybe it is false alarm after all
-
pach
- Phoca Newbie

- Posts: 4
- Joined: 17 May 2010, 10:27
Re: SQL Injection Vulnerability
I'll keep an eye on this thread too !
Some news ?
Some news ?
- Jan
- Phoca Hero

- Posts: 49299
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: SQL Injection Vulnerability
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
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

- Posts: 3
- Joined: 13 Dec 2009, 00:04
Re: SQL Injection Vulnerability
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
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.
- Jan
- Phoca Hero

- Posts: 49299
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: SQL Injection Vulnerability
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
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

- Posts: 2
- Joined: 20 Apr 2010, 01:50
Exploit Phoca SQL Injection Vulnerability
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/
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/