TinyPortal

Development => Support => Topic started by: ~FS~grizz on April 30, 2011, 06:18:01 PM

Title: error while trying to upload a file
Post by: ~FS~grizz on April 30, 2011, 06:18:01 PM
Link to my site: http://www.forgotten-soldiers.com
SMF version: SMF ver. 2.0 RC5
TP version: TP ver. 1.0 RC1
Default Forum Language:
English
Theme name and version: IceCube 2.5
Browser Name and Version: Firefox/3.6.16
Mods installed: Donations Pro, Member Awards, Autorefresh Who Index, LEET mod, Users online today, PM to member groups, Team Page, Google Member Map, SMF Arcade, Foxy for Aeva Media, Aeva Media, Tiny Portal
Related Error messages:An Error Has Occured!! Hacking Attempt...

this happened when someone tried to upload a file,
I have done some searching already but cannot seem to find if there is a common thing to search for to cause this error.
Title: Re: error while trying to upload a file
Post by: IchBin on April 30, 2011, 06:39:33 PM
Not much to go on from the error. It could be from someone trying to upload without going through the TP interface or someone trying to hack into the site.
Title: Re: error while trying to upload a file
Post by: ~FS~grizz on April 30, 2011, 09:47:38 PM
ok, I should have explained better
this was a registered member, who had permission to upload and has previously uploaded many files
the upload limits are high, the file size limits are high

I cannot see any basic settings that are wrong
Title: Re: error while trying to upload a file
Post by: ~FS~grizz on May 01, 2011, 08:35:58 PM
I found the error referenced in the admin error log:
QuoteFile: /home/forgot32/public_html/Sources/TPdlmanager.php
Line: 221

The line referred to contains this information:
VALUES ('". $title . "', '". htmlentities($text,ENT_QUOTES)."', '".$icon."' , ".$category.", 'dlitem', 0, 1, '".$name."', ".$now.", ".$now.", ".$dlfilesize.", 0, '', '', ".$context['user']['id'].", '".$screenshot."','','',0)", __FILE__, __LINE__);

the rest of the error log pastes info that was attempted to be entered:
QuoteHacking attempt...
INSERT INTO smf_tp_dlmanager
(name, description, icon, category, type, downloads, views, file, created, last_access, filesize, parent, access, link, author_id,screenshot,rating,voters,subitem )
VALUES ('|SAW| AKA eR' Demos', 'post content removed as irrelevant ', 'http://forgotten-soldiers.com/tp-downloads/icons/blank.gif' , 18, 'dlitem', 0, 1, 'SAWClanAKAeR.zip', 1304106407, 1304106407, 1341720, 0, '', '', 25, '','','',0)
Title: Re: error while trying to upload a file
Post by: IchBin on May 03, 2011, 03:49:00 PM
I wonder if it is because of the single quote that you put in the name. Maybe TP is not treating those properly. Try the same download with the single quote (apostrophe) removed from the subject.
Title: Re: error while trying to upload a file
Post by: ~FS~grizz on May 03, 2011, 05:35:44 PM
will do, thanks
I was looking over it all and wondered if it might be something simple on input values

Support Edit:  ~FS~grizz said "that worked great thanks!".  Topic marked solved. O0