- Notifications
You must be signed in to change notification settings - Fork5
Commitabf23ee
committed
Reject certificates with embedded NULLs in the commonName field. This stops
attacks where an attacker would put <attack>\0<propername> in the field andtrick the validation code that the certificate was for <attack>.This is a very low risk attack since it reuqires the attacker to trick theCA into issuing a certificate with an incorrect field, and the commonPostgreSQL deployments are with private CAs, and not external ones. Also,default mode in 8.4 does not do any name validation, and is thus also notvulnerable - but the higher security modes are.Backpatch all the way. Even though versions 8.3.x and before didn't havecertificate name validation support, they still exposed this field forthe user to perform the validation in the application code, and thereis no way to detect this problem through that API.Security:CVE-2009-40341 parent65ed203 commitabf23ee
2 files changed
+44
-5
lines changedLines changed: 22 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
953 | 953 |
| |
954 | 954 |
| |
955 | 955 |
| |
956 |
| - | |
| 956 | + | |
957 | 957 |
| |
958 | 958 |
| |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
959 | 979 |
| |
960 | 980 |
| |
961 | 981 |
| |
|
Lines changed: 22 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
1265 | 1265 |
| |
1266 | 1266 |
| |
1267 | 1267 |
| |
1268 |
| - | |
| 1268 | + | |
1269 | 1269 |
| |
1270 |
| - | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
1271 | 1290 |
| |
1272 | 1291 |
| |
1273 | 1292 |
| |
|
0 commit comments
Comments
(0)