Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: (untagged)
User information and users on my site have been deleted. What is the most likely cause for this?
Posted
Comments
ArunRajendra 10-Oct-13 0:28am    
You have been hacked.

SQL injection attack, how do you form your SQL statements? That is the most likely source of database loss.

By the way, if you have a lot of users and are the victim of an SQL injection attack, you may want to tell your users (hopefully you have a backup) that they may have had data stolen. This includes email addresses, passwords (if stored in plain text), user names, and any other personal information stored in your database. Usually the hacker deletes the users as a last action after stealing everything they can.
 
Share this answer
 
v2
Comments
Ron Beyer 10-Oct-13 0:42am    
By the way, if you have a lot of users and are the victim of an SQL injection attack, you may want to tell your users (hopefully you have a backup) that they may have had data stolen. This includes email addresses, passwords (if stored in plain text), user names, and any other personal information stored in your database. Usually the hacker deletes the users as a last action after stealing everything they can.
Mr Jason 13-Oct-13 22:54pm    
thanks tonnes! I sanitized my strings, luckily I had a backup
Sergey Alexandrovich Kryukov 10-Oct-13 1:54am    
5ed. I also added some references in my answer. The first one shows exactly the OP's case. :-)
—SA
thatraja 10-Oct-13 4:55am    
5!
In addition to Solution 1:

Here is how the users can be deleted: http://xkcd.com/327[^].

For further detail, please see my past answers:
EROR IN UPATE in com.ExecuteNonQuery();[^],
hi name is not displaying in name?[^].

Use this: http://msdn.microsoft.com/en-us/library/ff648339.aspx[^].

—SA
 
Share this answer
 
Comments
thatraja 10-Oct-13 4:54am    
Still I remember that strip :D, 5!
Sergey Alexandrovich Kryukov 10-Oct-13 12:36pm    
Thank you, Raja.
—SA
Ron Beyer 10-Oct-13 9:07am    
+5'd, XKCD usually sums it up pretty well, most computer geeks know about little Bobby Tables :)
Sergey Alexandrovich Kryukov 10-Oct-13 12:37pm    
Thank you, Ron.
But I learned about it only recently. :-)
—SA
Ron Beyer 10-Oct-13 13:16pm    
xkcd is a good way to waste a working day :)
Not only your site, there's a lot.
This article is just for you people. Security: It’s Getting Worse[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900