Skip to main content
Question Protected by CommunityBot
Improved formatting, rewording
Source Link
Anders
  • 65.8k
  • 25
  • 185
  • 226

How does SQL Injection worksinjection work through URL?

I am Web developer, but I don't understand something, I did search and asked many but they know it is just there but the don't give me a technical answer:

Main Question :

Howwonder how SQL Injectioninjection works through URL with SQL in the parameter?

Description :

. Assume I have database and in thea database I havewith a table named mytable and whenmytable. When I get idan ID from method POST I put it in this query:

SELECT * FROM `mytable` WHERE id='POST[id]'

Even if the user putputs SQL like  : SELECT * FROM 'mytable'

SELECT * FROM 'mytable'

It became something like this:

SELECT * FROM `mytable` WHERE id='SELECT * FROM 'mytable'

So it just returns  :

You have an error in your SQL syntax.

So I just think How thesehow does this kind of attack works work?

  How theycan the attacker change the query to pass Syntax Error without causing a syntax error?

How SQL Injection works through URL?

I am Web developer, but I don't understand something, I did search and asked many but they know it is just there but the don't give me a technical answer:

Main Question :

How SQL Injection works through URL with SQL in parameter?

Description :

Assume I have database and in the database I have table named mytable and when I get id from method POST I put it in this query

SELECT * FROM `mytable` WHERE id='POST[id]'

Even if user put SQL like  : SELECT * FROM 'mytable'

It became something like this:

SELECT * FROM `mytable` WHERE id='SELECT * FROM 'mytable'

So it just returns  :

You have an error in your SQL syntax

So I just think How these kind of attack works ?

  How they change the query to pass Syntax Error ?

How does SQL injection work through URL?

I wonder how SQL injection works through URL with SQL in the parameter. Assume I have a database with a table named mytable. When I get an ID from method POST I put it in this query:

SELECT * FROM `mytable` WHERE id='POST[id]'

Even if the user puts SQL like:

SELECT * FROM 'mytable'

It became something like this:

SELECT * FROM `mytable` WHERE id='SELECT * FROM 'mytable'

So it just returns:

You have an error in your SQL syntax.

So how does this kind of attack work? How can the attacker change the query without causing a syntax error?

How SQL Injection works through URL?

I am Web developer  , but iI don't understand something  , iI did search and asked many but they know it is just there but the don't give me a technical answer:

Main Question :

How SQL Injection works through URL with SQL in parameter  ?

Description :

Assume iI have database and in the database iI have table named mytable and when iI get id from method POST iI put it in this query

SELECT * FROM `mytable` WHERE id='POST[id]'

Even if user put SQL like : SELECT * FROM 'mytable'mytable`

It became something like this: SELECT * FROM mytable WHERE id='SELECT * FROM mytable' So

SELECT * FROM `mytable` WHERE id='SELECT * FROM 'mytable'

So it just returnreturns :

You have an error in your SQL syntax

So iI just think How these kind of attack works ?

How they change the query to pass Syntax Error ?

How SQL Injection works through URL

I am Web developer  , but i don't understand something  , i did search and asked many but they know it is just there but the don't give me a technical answer:

Main Question :

How SQL Injection works through URL with SQL in parameter  ?

Description :

Assume i have database and in the database i have table named mytable and when i get id from method POST i put it in this query

SELECT * FROM `mytable` WHERE id='POST[id]'

Even if user put SQL like : SELECT * FROM mytable`

It became something like this: SELECT * FROM mytable WHERE id='SELECT * FROM mytable' So it just return :

You have an error in your SQL syntax

So i just think How these kind of attack works ?

How they change the query to pass Syntax Error ?

How SQL Injection works through URL?

I am Web developer, but I don't understand something, I did search and asked many but they know it is just there but the don't give me a technical answer:

Main Question :

How SQL Injection works through URL with SQL in parameter?

Description :

Assume I have database and in the database I have table named mytable and when I get id from method POST I put it in this query

SELECT * FROM `mytable` WHERE id='POST[id]'

Even if user put SQL like : SELECT * FROM 'mytable'

It became something like this:

SELECT * FROM `mytable` WHERE id='SELECT * FROM 'mytable'

So it just returns :

You have an error in your SQL syntax

So I just think How these kind of attack works ?

How they change the query to pass Syntax Error ?

Rollback to Revision 1
Source Link
TildalWave
  • 10.8k
  • 11
  • 47
  • 87

oih iohoi hoiihoi hoihio hpoih How SQL Injection works through URL

hohoihiohi oioih oihio hioh fdoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooosgI am Web developer , but i don't understand something , i did search and asked many but they know it is just there but the don't give me a technical answer:

Main Question :

How SQL Injection works through URL with SQL in parameter ?

Description :

Assume i have database and in the database i have table named mytable and when i get id from method POST i put it in this query

SELECT * FROM `mytable` WHERE id='POST[id]'

Even if user put SQL like : SELECT * FROM mytable`

It became something like this: SELECT * FROM mytable WHERE id='SELECT * FROM mytable' So it just return :

You have an error in your SQL syntax

So i just think How these kind of attack works ?

How they change the query to pass Syntax Error ?

oih iohoi hoiihoi hoihio hpoih

hohoihiohi oioih oihio hioh fdoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooosg

How SQL Injection works through URL

I am Web developer , but i don't understand something , i did search and asked many but they know it is just there but the don't give me a technical answer:

Main Question :

How SQL Injection works through URL with SQL in parameter ?

Description :

Assume i have database and in the database i have table named mytable and when i get id from method POST i put it in this query

SELECT * FROM `mytable` WHERE id='POST[id]'

Even if user put SQL like : SELECT * FROM mytable`

It became something like this: SELECT * FROM mytable WHERE id='SELECT * FROM mytable' So it just return :

You have an error in your SQL syntax

So i just think How these kind of attack works ?

How they change the query to pass Syntax Error ?

deleted 654 characters in body; edited title
Source Link
user13934
user13934
Loading
Source Link
user13934
user13934
Loading