forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1d701d2
committed
Prevent privilege escalation in explicit calls to PL validators.
The primary role of PL validators is to be called implicitly duringCREATE FUNCTION, but they are also normal functions that a user can callexplicitly. Add a permissions check to each validator to ensure that auser cannot use explicit validator calls to achieve things he could nototherwise achieve. Back-patch to 8.4 (all supported versions).Non-core procedural language extensions ought to make the same two-linechange to their own validators.Andres Freund, reviewed by Tom Lane and Noah Misch.Security:CVE-2014-00611 parent15a8f97 commit1d701d2
File tree
8 files changed
+109
-2
lines changed- doc/src/sgml
- src
- backend
- catalog
- commands
- utils/fmgr
- include
- pl
- plperl
- plpgsql/src
- plpython
8 files changed
+109
-2
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
178 | 178 |
| |
179 | 179 |
| |
180 | 180 |
| |
181 |
| - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
182 | 185 |
| |
183 | 186 |
| |
184 | 187 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
718 | 718 |
| |
719 | 719 |
| |
720 | 720 |
| |
| 721 | + | |
| 722 | + | |
| 723 | + | |
721 | 724 |
| |
722 | 725 |
| |
723 | 726 |
| |
| |||
763 | 766 |
| |
764 | 767 |
| |
765 | 768 |
| |
| 769 | + | |
| 770 | + | |
| 771 | + | |
766 | 772 |
| |
767 | 773 |
| |
768 | 774 |
| |
| |||
814 | 820 |
| |
815 | 821 |
| |
816 | 822 |
| |
| 823 | + | |
| 824 | + | |
| 825 | + | |
817 | 826 |
| |
818 | 827 |
| |
819 | 828 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
997 | 997 |
| |
998 | 998 |
| |
999 | 999 |
| |
1000 |
| - | |
1001 | 1000 |
| |
1002 | 1001 |
| |
1003 | 1002 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
| 27 | + | |
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
| |||
2445 | 2446 |
| |
2446 | 2447 |
| |
2447 | 2448 |
| |
| 2449 | + | |
| 2450 | + | |
| 2451 | + | |
| 2452 | + | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
| 2479 | + | |
| 2480 | + | |
| 2481 | + | |
| 2482 | + | |
| 2483 | + | |
| 2484 | + | |
| 2485 | + | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
| 2490 | + | |
| 2491 | + | |
| 2492 | + | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
| 2517 | + | |
| 2518 | + | |
| 2519 | + | |
| 2520 | + | |
| 2521 | + | |
| 2522 | + | |
| 2523 | + | |
| 2524 | + | |
| 2525 | + | |
| 2526 | + | |
| 2527 | + | |
| 2528 | + | |
| 2529 | + | |
| 2530 | + | |
| 2531 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
624 | 624 |
| |
625 | 625 |
| |
626 | 626 |
| |
| 627 | + | |
627 | 628 |
| |
628 | 629 |
| |
629 | 630 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1847 | 1847 |
| |
1848 | 1848 |
| |
1849 | 1849 |
| |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
1850 | 1853 |
| |
1851 | 1854 |
| |
1852 | 1855 |
| |
| |||
1926 | 1929 |
| |
1927 | 1930 |
| |
1928 | 1931 |
| |
| 1932 | + | |
1929 | 1933 |
| |
1930 | 1934 |
| |
1931 | 1935 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
227 | 227 |
| |
228 | 228 |
| |
229 | 229 |
| |
| 230 | + | |
| 231 | + | |
| 232 | + | |
230 | 233 |
| |
231 | 234 |
| |
232 | 235 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
159 | 159 |
| |
160 | 160 |
| |
161 | 161 |
| |
| 162 | + | |
| 163 | + | |
| 164 | + | |
162 | 165 |
| |
163 | 166 |
| |
164 | 167 |
| |
| |||
184 | 187 |
| |
185 | 188 |
| |
186 | 189 |
| |
| 190 | + | |
187 | 191 |
| |
188 | 192 |
| |
189 | 193 |
| |
|
0 commit comments
Comments
(0)