Search found 10 matches: sql injection

Searched query: sql injection

by Lapo
04 Feb 2013, 09:19
Forum: Server Side Extension Development
Topic: DbManager - recommended or unsafe?
Replies: 8
Views: 14720

Re: DbManager - recommended or unsafe?

... things, but aren't the helper methods like executeQuery() dangerous for SQL injection attacks? If so, then should they really be provided - of course they are perhaps aimed at newbies but on the other hand those are the kind of people who are not going to be aware of the risks so my question is ...
by JohnnyD
27 Nov 2012, 14:32
Forum: Server Side Extension Development
Topic: DbManager - recommended or unsafe?
Replies: 8
Views: 14720

Re: DbManager - recommended or unsafe?

Yeah but the people who know how to do that are the ones who know the dangers of not doing it :)
SQL injection-proofing isn't common sense in my view, otherwise it wouldn't be such an endemic problem!

A note in the javadoc would still be worthwhile IMO but I'll not argue it any further :)
by rjgtav
20 Nov 2012, 21:02
Forum: Server Side Extension Development
Topic: DbManager - recommended or unsafe?
Replies: 8
Views: 14720

Re: DbManager - recommended or unsafe?

... bad characters from the messages sent from the client covers most of the SQL injection scenarios.

If you prefer to use Prepared Statements, you can easily get the JDBC connection trough the DBManager.getConnection() method, which will give you direct access to the JDBC framework. Don't forget to ...
by JohnnyD
20 Nov 2012, 20:11
Forum: Server Side Extension Development
Topic: DbManager - recommended or unsafe?
Replies: 8
Views: 14720

DbManager - recommended or unsafe?

... things, but aren't the helper methods like executeQuery() dangerous for SQL injection attacks? If so, then should they really be provided - of course they are perhaps aimed at newbies but on the other hand those are the kind of people who are not going to be aware of the risks so my question is ...
by BigFIsh
01 Sep 2011, 04:34
Forum: Server Side Extension Development
Topic: (AS1) - How to get MySQL error message?
Replies: 4
Views: 9661

It's not a good idea to send the error message to the client - it just opens a door for sql injection / hack. So that's why the error is only logged in your logs.
by p3dro.sola
10 Sep 2010, 01:52
Forum: Server Side Extension Development
Topic: SQL Injection
Replies: 1
Views: 5056

SQL Injection

... wondering what sort of protection (if any) smartfox server has against sql injection attacks on serverside extentions.

For example, let's say i have a function in a serverside extentsion that logs moves from a game to a MySQL database. So everytime a player makes a move this code gets run ...
by Gamer
15 Sep 2009, 17:44
Forum: Server Side Extension Development
Topic: SQL Injection
Replies: 1
Views: 5342

SQL Injection

Is using the escapedquotes function enough? Does that cover all scenarios?
by Flappi282
02 Aug 2009, 12:45
Forum: Server Side Extension Development
Topic: SQL Question
Replies: 3
Views: 6523

SQL Question

Hey! How do you stop SQL injection? In php the code is:

Code: Select all

$clean = mysql_real_escape_string($name_bad);
by jamieyg3
24 Nov 2008, 03:43
Forum: Server Side Extension Development
Topic: Help! Could not retrieve a database connection
Replies: 5
Views: 9372

Help! Could not retrieve a database connection

... Could not retrieve a database connection: org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted
jvm 1 | org ... I am also doing, because I wanted to use PreparedStatements to avoid injection attacks. All I have to do to trigger this problem is try to login with ...
by mwadden
27 Aug 2007, 20:22
Forum: Server Side Extension Development
Topic: Protecting against SQL injection
Replies: 7
Views: 16108

Protecting against SQL injection

... user submitted variables on the server side, so that I'm protected from SQL injection?

For example, I want to do this but it's clearly not safe:

var sql = "select * from users where userName='" + nick + "' and password='" + pass + "'";

Normally I'd use an escaping function (in .net, coldfusion ...