forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita7a012d

Barry Lind
Fixes additional sql injection vulnerabilities reported by Oliver Jowett
and Dmitry Tkach. Specifically the previous fix still allowed the statement termination character through in unquoted places in the sql statement, and the driver never correctly handled someone passing a value of \0 in a string which under the v2 protocol would end the statement causing the following text to possiblybe treated as a new sql statement Modified Files: jdbc/org/postgresql/Driver.java.in jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java1 parent47f14e7 commita7a012d
File tree
2 files changed
+21
-9
lines changed- src/interfaces/jdbc/org/postgresql
- jdbc1
2 files changed
+21
-9
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
503 | 503 |
| |
504 | 504 |
| |
505 | 505 |
| |
506 |
| - | |
| 506 | + | |
507 | 507 |
| |
508 | 508 |
|
Lines changed: 19 additions & 7 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 |
| |
| |||
1050 | 1050 |
| |
1051 | 1051 |
| |
1052 | 1052 |
| |
1053 |
| - | |
| 1053 | + | |
1054 | 1054 |
| |
1055 | 1055 |
| |
1056 | 1056 |
| |
1057 | 1057 |
| |
1058 |
| - | |
| 1058 | + | |
1059 | 1059 |
| |
1060 | 1060 |
| |
1061 | 1061 |
| |
1062 |
| - | |
1063 |
| - | |
1064 |
| - | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
1065 | 1077 |
| |
1066 | 1078 |
| |
1067 | 1079 |
| |
|
0 commit comments
Comments
(0)