SQL Hack

Started on the old forum in July 2010 · view the original in the archive · old links redirect here

27 replies · 3,491 views · started 16 years ago · 1 min read

TL;DR · summary of 27 replies
  • hackers likely used SQL injection to exploit the same password for all users in the ibwf_users table.
  • subzero suggested using a different table name as a simple fix.
  • robzky asked where the hacker put the injection, and GiLL said it was from editing profile fields like username or password.
  • ewanz tried changing database names but still got hacked, suggesting he needs to secure his POST and GET methods.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

14 participants
robzky Developer · 205 posts #1

My site hacked, In my SQL ibwf_users all password are the same. Hacker can use any members username in my site. How does it happen? And How to prevent this kind of hacking?

LESS TALK. LESS MISTAKE.

HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

subzero Super moderator Fellow · 3,954 posts #2

Open my username (subzero) search anti sql injection then do what it says

Enjoy!

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

robzky Developer · 205 posts #3

Okay thanks dude, well, How did the hackers that? what kind of sql injection he used?

LESS TALK. LESS MISTAKE.

HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

subzero Super moderator Fellow · 3,954 posts #4

More like xml injection but my little code will block them doing it to you..

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

crazybrumi Super moderator Principal · 1,064 posts #6

this looks to be huwards doing again. he tries geting in via your puting some code in the user agent which if u havnt got htmlchars or mysql_real_escape will execute anything in the database you ask it to.

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

leadiztah Developer · 55 posts #7

simply.. Just rename all your table name.. for ex. from ibwf_users to 7awt534_user lol.. open a text editor.. and replace IBWF to (desire name of table) make sure that all of the php file changed!

robzky Developer · 205 posts #8

Damn! in my SQL ibwf_users.. Registered username a lot of fake1, fake02, fake03............fake10000000 users!

LESS TALK. LESS MISTAKE.

HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

subzero Super moderator Fellow · 3,954 posts #9

pmpl, This is why i banned the noob ...

Also Note your using lavalair and yes its full of bugs you can't fix it pay a pro coder for a script that works ok

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

something else Fellow · 2,296 posts #10

leadiztah wrote: simply.. Just rename all your table name.. for ex. from ibwf_users to 7awt534_user lol.. open a text editor.. and replace IBWF to (desire name of table) make sure that all of the php file changed!

This is pointless if your not correctly protected as sql can be crashed easily to give out your new table names

ewanz Developer · 187 posts #11

i have 4 times change the table name but it same happened like robzsky.. I also have put many anti sql in my script..why it still g0t hacked by injecti0n?

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
something else Fellow · 2,296 posts #12

ewanz wrote: i have 4 times change the table name but it same happened like robzsky.. I also have put many anti sql in my script..why it still g0t hacked by injecti0n?

something else wrote: This is pointless if your not correctly protected as sql can be crashed easily to give out your new table names

You still have holes in your site use the below code and it will fix them:

This will stop the 2 main holes you are not protecting: Add this to your config.php

if(isset($_GET)){foreach($_GET as $key=>$value){$_GET[$key]=addslashes(htmlspecialchars($value));}}
if(isset($_POST)){foreach($_POST as $key=>$value){$_POST[$key]=addslashes(htmlspecialchars($value));}}   
if(isset($_SERVER)){foreach($_SERVER as $key=>$value){$_SERVER[$key]=addslashes(htmlspecialchars($value));}} 
if(isset($_SESSION)){foreach($_SESSION as $key=>$value){$_SESSION[$key]=addslashes(htmlspecialchars($value));}} 
something else Fellow · 2,296 posts #14

You say that about all my coding 😛 and also then never say why it wont work ..... SO heres a test...

4 of the above tests: before code: test1: ', id='<script> test2: ', id='<script> test3: ', id='<script> test4: ', id='<script>

after code: test1: ', id='<script> test2: ', id='<script> test3: ', id='<script> test4: ', id='<script>

Now can you tell me why its not going to work? ... you probably wont answer me as per usual lol

CreativityKills Lead · 833 posts #16

Okay it wont work because sum1 who knws half of what hes doing wnt cum at u with dat test u did. Btw u shud really ditch addslashes man

Added after 2 minutes:

And oh if u are using what my man posted up there, atleast filter ur cookies and server globals, we dnt want anyfin cumin frm there now do we.

something else Fellow · 2,296 posts #17

This was only a quick fix to most problems ... i said use addslashes as i said put it in config.php .... which is before database connecting as you cant use mysql_real_escape_string due to no connection to database...

wapxtech Developer · 189 posts #18

the best way to secure it, run any ftp client something like FileZilla, login your ftp account. righclick your public_html dir. and delete it.. xD

~CREDITS TO GUMSLONE.

rayjee wrote: M8 Its me yggrassil hehe. Heres the tip, u must secured ur browser =)

noob suggestion. if you want to learn how to secure such script, go to school and study PHP/SQL.. LOL

External image (may be gone) http://wapx.amob.com Applications, Games, Wallpapers, Ringtones, Videos, Themes, Screensaver and More!!!

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close