I. Vulnerability Overview

1.1 Summary

A Stored Cross-Site Scripting (XSS) vulnerability exists in the Notice module of SmartAdmin(https://gitee.com/lab1024/smart-admin) v3.0, an enterprise-level rapid development platform. Attackers can inject malicious JavaScript code through the database, which will be executed in the browser of other users when they view the malicious notice.

1.2 Affected Versions

II. Vulnerability Details


2.1 Vulnerability Classification

2.2 Affected Components

Component Version File Path
Frontend Vue3 + Ant Design Vue smart-admin-web-javascript/src/views/business/oa/notice/components/notice-form-drawer.vue
Frontend Vue3 + Ant Design Vue smart-admin-web-javascript/src/views/business/oa/notice/notice-detail.vue
Frontend @wangeditor-next/editor smart-admin-web-javascript/src/components/framework/wangeditor/index.vue
Backend Spring Boot 3.5.4 / 2.x Notice Controller

2.3 Root Cause

  1. No input sanitization on frontend
  2. No output encoding on frontend
  3. No validation on backend

III. Technical Analysis

3.1 Frontend Vulnerable Code

File: smart-admin-web-javascript/src/views/business/oa/notice/components/notice-form-drawer.vue

Vulnerable Code (Line 75-77):