- Notifications
You must be signed in to change notification settings - Fork5
Commitacf09c6

Barry Lind
Sometimes the third time is the charm. Third try to fix the sql injection
vulnerability. This fix completely removes the ability (hack) of being ableto bind a list of values in an in clause. It was demonstrated that by allowingthat functionality you open up the possibility for certain types ofsql injection attacks. The previous fix attempts all focused on preventingthe insertion of additional sql statements (the semi-colon problem:xxx; any new sql statement here). But that still left the ability tochange the where clause on the current statement or perform a subselectwhich can circumvent applicaiton security logic and/or allow you to callany stored function. Modified Files: jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java1 parentf0f1375 commitacf09c6
File tree
1 file changed
+17
-20
lines changed- src/interfaces/jdbc/org/postgresql/jdbc1
1 file changed
+17
-20
lines changedLines changed: 17 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
| 28 | + | |
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
| |||
1036 | 1036 |
| |
1037 | 1037 |
| |
1038 | 1038 |
| |
1039 |
| - | |
| 1039 | + | |
1040 | 1040 |
| |
1041 | 1041 |
| |
1042 | 1042 |
| |
1043 | 1043 |
| |
1044 | 1044 |
| |
1045 | 1045 |
| |
1046 |
| - | |
1047 |
| - | |
1048 |
| - | |
1049 |
| - | |
1050 |
| - | |
1051 |
| - | |
1052 |
| - | |
1053 |
| - | |
1054 |
| - | |
1055 |
| - | |
1056 |
| - | |
1057 |
| - | |
1058 |
| - | |
| 1046 | + | |
1059 | 1047 |
| |
1060 | 1048 |
| |
1061 | 1049 |
| |
| |||
1068 | 1056 |
| |
1069 | 1057 |
| |
1070 | 1058 |
| |
1071 |
| - | |
1072 |
| - | |
1073 |
| - | |
1074 | 1059 |
| |
1075 | 1060 |
| |
1076 | 1061 |
| |
| |||
1493 | 1478 |
| |
1494 | 1479 |
| |
1495 | 1480 |
| |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
1496 | 1485 |
| |
1497 |
| - | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
1498 | 1489 |
| |
1499 | 1490 |
| |
1500 | 1491 |
| |
| |||
1506 | 1497 |
| |
1507 | 1498 |
| |
1508 | 1499 |
| |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
1509 | 1504 |
| |
1510 |
| - | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
1511 | 1508 |
| |
1512 | 1509 |
| |
1513 | 1510 |
| |
|
0 commit comments
Comments
(0)