Commit 26dfa7e
fix: add server-side RBAC to unprotected write/delete endpoints (VAPT #1)
Add @handle_permission decorator to 14 non-GET endpoints that were
missing server-side permission checks, allowing privilege escalation
via response tampering.
Connection (connectiondetails):
- delete_connection, delete_all_connections, test_connection
Environment (environmentmodels):
- test_environment
Projects (projectdetails):
- create_sample_project, set_project_schema, save_model_file
- set_model_config_and_reference, set_model_transformation
- delete_model_transformation, set_model_presentation
- validate_model_file, write_database_file, generate_formula
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent cbf44b8 commit 26dfa7e
3 files changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| 128 | + | |
127 | 129 | | |
128 | 130 | | |
129 | 131 | | |
| |||
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
| 151 | + | |
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
| |||
366 | 367 | | |
367 | 368 | | |
368 | 369 | | |
| 370 | + | |
369 | 371 | | |
370 | 372 | | |
371 | 373 | | |
| |||
679 | 681 | | |
680 | 682 | | |
681 | 683 | | |
| 684 | + | |
682 | 685 | | |
683 | 686 | | |
684 | 687 | | |
| |||
699 | 702 | | |
700 | 703 | | |
701 | 704 | | |
| 705 | + | |
702 | 706 | | |
703 | 707 | | |
704 | 708 | | |
| |||
765 | 769 | | |
766 | 770 | | |
767 | 771 | | |
| 772 | + | |
768 | 773 | | |
769 | 774 | | |
770 | 775 | | |
| |||
782 | 787 | | |
783 | 788 | | |
784 | 789 | | |
| 790 | + | |
785 | 791 | | |
786 | 792 | | |
787 | 793 | | |
| |||
803 | 809 | | |
804 | 810 | | |
805 | 811 | | |
| 812 | + | |
806 | 813 | | |
807 | 814 | | |
808 | 815 | | |
| |||
840 | 847 | | |
841 | 848 | | |
842 | 849 | | |
| 850 | + | |
843 | 851 | | |
844 | 852 | | |
845 | 853 | | |
| |||
852 | 860 | | |
853 | 861 | | |
854 | 862 | | |
| 863 | + | |
855 | 864 | | |
856 | 865 | | |
857 | 866 | | |
| |||
864 | 873 | | |
865 | 874 | | |
866 | 875 | | |
| 876 | + | |
867 | 877 | | |
868 | 878 | | |
869 | 879 | | |
| |||
0 commit comments