Alliance bug

Locked
Panda Man
Forum Grunt
Posts: 76
Joined: Tue Jan 30, 2007 10:34 am
ID: 0
Location: Ireland

Alliance bug

i recently tried to make my own alliance and this message came up...


Query2 failed: update `UserDetails` set alliance='9665', allianceName='Panda's Army', namePostfix='[ Panda's Army ]', joinAlliance=1180509647, commander='0' WHERE ID='70208' #/alliances_manage2.phpYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Army', namePostfix='[ Panda's Army ]', joinAlliance=1180509647, commander='0' ' at line 1Query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Army', 1180509648, '', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)')' at line 1
Warning: Cannot modify header information - headers already sent by (output started at /game/stargame/stargatewars.com/vsys.php:916) in /game/stargame/stargatewars.com/alliances_manage2.php on line 545
DaDigi
Forum Elder
Posts: 2358
Joined: Sun Nov 27, 2005 11:29 am
Alliance: I hate all equally
Race: Tri-athalon
ID: 46811
Location: Philadelphia, PA
Contact:

It is an SQL error. It should resolve itself.
DaDigi
Former Moderator for Market & Suggestions/Reports
RB Ian
Forum Grunt
Posts: 88
Joined: Mon Jul 17, 2006 8:42 am

DaDigi wrote:It is an SQL error. It should resolve itself.


Is that just a stock answer? Cause it's wrong and severely misinformed. It won't resolve itself, because it's a bug in the code, since apparently admin isn't escaping the names of alliances before he sticks them into queries. This could easily lead to sql injections, that could allow someone malicious to delete every account in the game. This should be forwarded to admin asap
RobinInDaHood
Forum Elite
Posts: 1509
Joined: Wed Oct 25, 2006 3:39 am
Race: Vulpes
ID: 75697
Location: Da Hood, of course

As much as it pains me to say this, Ian is right. This is a serious security problem that should be addressed immediately.
Panda Man
Forum Grunt
Posts: 76
Joined: Tue Jan 30, 2007 10:34 am
ID: 0
Location: Ireland

Re: Alliance bug

and also a new thing, no-one can get into my allaince, everyone i request to join or reqests to join me cant leave until they eventually reject, every time they accept it goes to a white page with a similer coding on it
User avatar
shruiken
Forum Irregular
Posts: 294
Joined: Mon Aug 20, 2007 3:07 am
Race: Dragon King
ID: 103777
Location: In skies above you

Re: Alliance bug

this is the problem that i am having.
Arik tree-ac te kek
Locked

Return to “Bugs Archive”