- Notifications
You must be signed in to change notification settings - Fork4.4k
Commit6f9ee62
authored
fix(auth): validate Origin header against APPSMITH_BASE_URL (#41426)
## DescriptionPrevent account takeover by validating Origin header in password resetand email verification endpoints against configured APPSMITH_BASE_URL.- Add validateBaseUrl() helper to check Origin matches APPSMITH_BASE_URL- Add APPSMITH_BASE_URL field to admin settings UI- Ensure backward compatibility when APPSMITH_BASE_URL is not setEE PR:appsmithorg/appsmith-ee#8448Fixeshttps://github.com/appsmithorg/appsmith/security/advisories/GHSA-7hf5-mc28-xmcv## Automation/ok-to-test tags="@tag.All"### 🔍 Cypress test results<!-- This is an auto-generated comment: Cypress test results -->> [!TIP]> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉> Workflow run:<https://github.com/appsmithorg/appsmith/actions/runs/19726406804>> Commit:3764386> <ahref="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=19726406804&attempt=1"target="_blank">Cypress dashboard</a>.> Tags: `@tag.All`> Spec:> <hr>Thu, 27 Nov 2025 07:03:50 UTC<!-- end of auto-generated comment: Cypress test results -->## CommunicationShould the DevRel and Marketing teams inform users about this change?- [ ] Yes- [ ] No<!-- This is an auto-generated comment: release notes by coderabbit.ai-->## Summary by CodeRabbit* **New Features*** Added Appsmith Base URL configuration setting in Admin Settings,enabling administrators to specify their instance's base URL.* **Bug Fixes*** Improved error handling and added URL validation in password reset andemail verification flows for enhanced security.<sub>✏️ Tip: You can customize this high-level summary in your reviewsettings.</sub><!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent9864994 commit6f9ee62
File tree
4 files changed
+69
-3
lines changed- app
- client
- cypress/locators
- src/ce/pages/AdminSettings/config
- server/appsmith-server/src/main/java/com/appsmith/server
- controllers/ce
- services/ce
4 files changed
+69
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
41 | 61 | | |
42 | 62 | | |
43 | 63 | | |
| |||
136 | 156 | | |
137 | 157 | | |
138 | 158 | | |
| 159 | + | |
139 | 160 | | |
140 | 161 | | |
141 | 162 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
| |||
Lines changed: 47 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
111 | 140 | | |
112 | 141 | | |
113 | 142 | | |
| |||
188 | 217 | | |
189 | 218 | | |
190 | 219 | | |
191 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
192 | 229 | | |
193 | 230 | | |
194 | 231 | | |
| |||
811 | 848 | | |
812 | 849 | | |
813 | 850 | | |
814 | | - | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
815 | 860 | | |
816 | 861 | | |
817 | 862 | | |
| |||
0 commit comments
Comments
(0)