开发者

How can you place a string into your query without using any quotation marks?

开发者 https://www.devze.com 2023-03-12 17:33 出处:网络
You have found a SQL injection vulnerability in a numeric field, but you need to use a string value in one of your attack payloads.How can you place a 开发者_如何转开发string into your query without u

You have found a SQL injection vulnerability in a numeric field, but you need to use a string value in one of your attack payloads.How can you place a 开发者_如何转开发string into your query without using any quotation marks?


Use a parametrized query instead of concatenation strings. Guide to SQL Injection


Escape ' with ''

INSERT INTO Foo(A)VALUES('GEORGE''S CAT')

0

精彩评论

暂无评论...
验证码 换一张
取 消