Content deleted Content added
No edit summary |
|||
Line 155:
</source>
== Security
String Interpolation, like string concatenation, may lead to security problems. When failed to properly escape or filter user input data, system will expose to [[SQL
An example of SQL
query = "SELECT x, y, z FROM Table WHERE id='$id' "▼
▲query = "SELECT x, y, z FROM Table WHERE id='$id' "
If ''$id'' is replaced with ''"'; DELETE FROM Table; SELECT * FROM Table WHERE id='"'', executing this query will wipe out all the data in Table.
|