NocoDB: Reflected Cross-Site Scripting via Page Leaving Redirect URL
Summary
A reflected XSS vulnerability exists in the Page Leaving Warning page. ThencRedirectUrl and ncBackUrl query parameters are used in window.location.href and ` tag bindings without validation, allowing javascript: URI injection.Details
PageLeavingWarning.vue reads ncRedirectUrl and ncBackUrl directly from the route query without validation. When isSameOriginUrl() returns false (as it does for javascript: URIs), the raw URL is assigned to window.location.href, executing arbitrary JavaScript. The redirect URL is also bound directly to an tag's href` attribute.