up
svn: r13421
This commit is contained in:
parent
7edf96de7a
commit
61419caf8b
|
@ -1038,7 +1038,7 @@ We used @scheme[blog-insert-post!] and @scheme[post-insert-comment!] to initiali
|
|||
|
||||
@centerline{------------}
|
||||
|
||||
A user could submit a post with a title like, @scheme{null', 'null') and INSERT INTO accounts (username, password) VALUES ('ur','hacked} and get our simple @scheme[sqlite:insert] to make two INSERTs instead of one.
|
||||
A user could submit a post with a title like, @scheme["null', 'null') and INSERT INTO accounts (username, password) VALUES ('ur','hacked"] and get our simple @scheme[sqlite:insert] to make two INSERTs instead of one.
|
||||
|
||||
This is called an SQL injection attack. It can be resolved by using
|
||||
prepared statements that let SQLite do the proper quoting for us. Refer
|
||||
|
|
Loading…
Reference in New Issue
Block a user