Quellcode durchsuchen

修复站群 SuperSlide 供应链风险

清理两份自托管 SuperSlide 中的不可信上游域名,更新缓存版本,并为图书馆、神农苑标签页增加项目自有可访问标签组件。GH 站移除未使用的插件引用,10024 旧模板改指向修复后的本地 2.1.1 资源。新增 35 站供应链资产清单、静态/数据库/现网审计工具,以及 hxcs 发布前审计门禁;补充 CSP Report-Only、安全响应头和 backup JSP 访问阻断配置。

Validation:
- 本地静态和数据库正文审计 0 violations
- 35 站现网扫描确认 GH、图书馆、神农苑旧资源待发布
- Playwright 验证标签页鼠标/键盘切换和 1440/1024/390 视口
- bash、Python、JavaScript 语法检查通过
非繁 vor 1 Monat
Ursprung
Commit
94e6a7caf4
27 geänderte Dateien mit 1056 neuen und 61 gelöschten Zeilen
  1. 1 1
      WebRoot/apps/space/plug-in/jquery.superslide.2.1.1.js
  2. 8 0
      WebRoot/main/dist/websites/css/zq-accessible-tabs.css
  3. 150 0
      WebRoot/main/dist/websites/js/zq-accessible-tabs.js
  4. 1 1
      WebRoot/main/dist/websites/plug-in/superSlide/jquery.SuperSlide.js
  5. 3 3
      WebRoot/main/websiteTemplatePeview/gzhx/pageNewest-sny/index.html
  6. 3 3
      WebRoot/main/websiteTemplatePeview/gzhx/pageNewest-tsg2/index.html
  7. 1 1
      WebRoot/main/websiteTemplatePeview/gzhx/plug-in/superSlide/jquery.SuperSlide.js
  8. 1 2
      WebRoot/web/subassembly/website/10024/10125/1002410125_edit.jsp
  9. 1 2
      WebRoot/web/subassembly/website/10024/10125/1002410125_run.jsp
  10. 1 1
      WebRoot/web/subassembly/website/10024/10130/1002410130_edit.jsp
  11. 1 2
      WebRoot/web/subassembly/website/10024/10130/1002410130_run.jsp
  12. 0 2
      WebRoot/web/subassembly/website/10053/10310/1005310310_edit.jsp
  13. 0 2
      WebRoot/web/subassembly/website/10053/10310/1005310310_run.jsp
  14. 6 6
      WebRoot/web/subassembly/website/10085/10550/1008510550_edit.jsp
  15. 6 7
      WebRoot/web/subassembly/website/10085/10550/1008510550_run.jsp
  16. 2 3
      WebRoot/web/subassembly/website/10085/10557/1008510557_edit.jsp
  17. 2 3
      WebRoot/web/subassembly/website/10085/10557/1008510557_run.jsp
  18. 6 6
      WebRoot/web/subassembly/website/10086/10559/1008610559_edit.jsp
  19. 6 7
      WebRoot/web/subassembly/website/10086/10559/1008610559_run.jsp
  20. 2 3
      WebRoot/web/subassembly/website/10086/10566/1008610566_edit.jsp
  21. 2 3
      WebRoot/web/subassembly/website/10086/10566/1008610566_run.jsp
  22. 99 0
      docs/网站群前端供应链安全基线.md
  23. 3 3
      local-run/bin/apply-hxcs-nginx-upload-limit.sh
  24. 452 0
      local-run/bin/audit-web-supply-chain.py
  25. 38 0
      local-run/bin/sync-to-hxcs-prod.sh
  26. 10 0
      local-run/deploy/hxcs/nginx/default.conf
  27. 251 0
      security/web-assets.json

Datei-Diff unterdrückt, da er zu groß ist
+ 1 - 1
WebRoot/apps/space/plug-in/jquery.superslide.2.1.1.js


+ 8 - 0
WebRoot/main/dist/websites/css/zq-accessible-tabs.css

@@ -0,0 +1,8 @@
+.zq-tabs-panel[hidden] {
+    display: none !important;
+}
+
+.zq-tabs-list [role="tab"]:focus-visible {
+    outline: 2px solid currentColor;
+    outline-offset: 3px;
+}

+ 150 - 0
WebRoot/main/dist/websites/js/zq-accessible-tabs.js

@@ -0,0 +1,150 @@
+(function (window, document) {
+    'use strict';
+
+    var instanceCount = 0;
+
+    function toArray(value) {
+        return Array.prototype.slice.call(value || []);
+    }
+
+    function directChildByClass(parent, className) {
+        for (var index = 0; index < parent.children.length; index += 1) {
+            if (parent.children[index].classList.contains(className)) {
+                return parent.children[index];
+            }
+        }
+        return null;
+    }
+
+    function activate(root, tabs, panels, activeIndex, focusTab) {
+        if (!tabs.length || !panels.length) {
+            return;
+        }
+
+        var nextIndex = Math.max(0, Math.min(activeIndex, tabs.length - 1));
+        tabs.forEach(function (tab, index) {
+            var active = index === nextIndex;
+            var control = tab.querySelector('a') || tab;
+            tab.classList.toggle('on', active);
+            control.setAttribute('aria-selected', active ? 'true' : 'false');
+            control.setAttribute('tabindex', active ? '0' : '-1');
+            if (panels[index]) {
+                panels[index].hidden = !active;
+                panels[index].classList.toggle('is-active', active);
+                panels[index].setAttribute('aria-hidden', active ? 'false' : 'true');
+            }
+        });
+
+        root.setAttribute('data-active-index', String(nextIndex));
+        if (focusTab) {
+            (tabs[nextIndex].querySelector('a') || tabs[nextIndex]).focus();
+        }
+    }
+
+    function bind(container) {
+        if (container.getAttribute('data-zq-tabs-ready') === 'true') {
+            return;
+        }
+
+        var header = directChildByClass(container, 'hd');
+        var tabList = header && header.querySelector('ul');
+        var panelContainer = directChildByClass(container, 'bd');
+        if (!tabList || !panelContainer) {
+            return;
+        }
+
+        var tabs = toArray(tabList.children).filter(function (item) {
+            return item.tagName === 'LI';
+        });
+        var panels = toArray(panelContainer.children);
+        if (!tabs.length || !panels.length) {
+            return;
+        }
+
+        var idPrefix = 'zq-tabs-' + (++instanceCount);
+        tabList.setAttribute('role', 'tablist');
+        tabList.classList.add('zq-tabs-list');
+        panelContainer.classList.add('zq-tabs-panels');
+
+        tabs.forEach(function (tab, index) {
+            var control = tab.querySelector('a') || tab;
+            var tabId = idPrefix + '-tab-' + index;
+            var panelId = idPrefix + '-panel-' + index;
+
+            tab.setAttribute('role', 'presentation');
+            control.setAttribute('role', 'tab');
+            control.setAttribute('aria-controls', panelId);
+            control.id = tabId;
+            control.setAttribute('data-tab-index', String(index));
+            if (index === tabs.length - 1) {
+                control.setAttribute('tabindex', '0');
+            }
+
+            if (panels[index]) {
+                panels[index].id = panelId;
+                panels[index].setAttribute('role', 'tabpanel');
+                panels[index].setAttribute('aria-labelledby', tabId);
+                panels[index].classList.add('zq-tabs-panel');
+            }
+
+            function selectAndFocus() {
+                activate(container, tabs, panels, index, true);
+            }
+
+            tab.addEventListener('mouseenter', function () {
+                activate(container, tabs, panels, index, false);
+            });
+            control.addEventListener('focus', function () {
+                activate(container, tabs, panels, index, false);
+            });
+            control.addEventListener('keydown', function (event) {
+                var targetIndex = index;
+                if (event.key === 'ArrowRight' || event.key === 'ArrowDown') {
+                    targetIndex = (index + 1) % tabs.length;
+                } else if (event.key === 'ArrowLeft' || event.key === 'ArrowUp') {
+                    targetIndex = (index - 1 + tabs.length) % tabs.length;
+                } else if (event.key === 'Home') {
+                    targetIndex = 0;
+                } else if (event.key === 'End') {
+                    targetIndex = tabs.length - 1;
+                } else if (event.key === 'Enter' || event.key === ' ') {
+                    event.preventDefault();
+                    selectAndFocus();
+                    return;
+                } else {
+                    return;
+                }
+                event.preventDefault();
+                activate(container, tabs, panels, targetIndex, true);
+            });
+            control.addEventListener('click', function (event) {
+                var href = control.getAttribute('href') || '';
+                if (!href || href === '#' || href.indexOf('javascript:') === 0) {
+                    event.preventDefault();
+                }
+                activate(container, tabs, panels, index, false);
+            });
+        });
+
+        var initialIndex = tabs.findIndex(function (tab) {
+            return tab.classList.contains('on');
+        });
+        activate(container, tabs, panels, initialIndex < 0 ? 0 : initialIndex, false);
+        container.setAttribute('data-zq-tabs-ready', 'true');
+    }
+
+    function init(root) {
+        var scope = root || document;
+        toArray(scope.querySelectorAll('.slideTxtBox')).forEach(bind);
+    }
+
+    window.ZQAccessibleTabs = {init: init};
+
+    if (document.readyState === 'loading') {
+        document.addEventListener('DOMContentLoaded', function () {
+            init(document);
+        });
+    } else {
+        init(document);
+    }
+})(window, document);

Datei-Diff unterdrückt, da er zu groß ist
+ 1 - 1
WebRoot/main/dist/websites/plug-in/superSlide/jquery.SuperSlide.js


+ 3 - 3
WebRoot/main/websiteTemplatePeview/gzhx/pageNewest-sny/index.html

@@ -13,7 +13,7 @@
     <script src="../js/common.js"></script>
     <script src="../js/common.js"></script>
     <title>华夏神农苑</title>
     <title>华夏神农苑</title>
     <script src="../js/AdMove.js"></script>
     <script src="../js/AdMove.js"></script>
-    <script src="../plug-in/superSlide/jquery.SuperSlide.js"></script>
+    <script src="/main/dist/websites/js/zq-accessible-tabs.js?v=20261022-security-3"></script>
 </head>
 </head>
 <body>
 <body>
     <!-- 头部 -->
     <!-- 头部 -->
@@ -1069,10 +1069,10 @@
     });
     });
 
 
     // tabs标签页
     // tabs标签页
-    jQuery(".slideTxtBox").slide({effect:"topLoop", trigger:"click", delayTime:200});
+    ZQAccessibleTabs.init(document);
 
 
     // 飘窗
     // 飘窗
     var adMove1 = new AdMove("adMove1", true);
     var adMove1 = new AdMove("adMove1", true);
     adMove1.Run();
     adMove1.Run();
 </script>
 </script>
-</html>
+</html>

+ 3 - 3
WebRoot/main/websiteTemplatePeview/gzhx/pageNewest-tsg2/index.html

@@ -13,7 +13,7 @@
     <script src="../js/common.js"></script>
     <script src="../js/common.js"></script>
     <title>图书馆</title>
     <title>图书馆</title>
     <script src="../js/AdMove.js"></script>
     <script src="../js/AdMove.js"></script>
-    <script src="../plug-in/superSlide/jquery.SuperSlide.js"></script>
+    <script src="/main/dist/websites/js/zq-accessible-tabs.js?v=20261022-security-3"></script>
 </head>
 </head>
 <body>
 <body>
     <!-- 头部 -->
     <!-- 头部 -->
@@ -755,10 +755,10 @@
     });
     });
 
 
     // tabs标签页
     // tabs标签页
-    jQuery(".slideTxtBox").slide({effect:"left", delayTime:200});
+    ZQAccessibleTabs.init(document);
 
 
     // 飘窗
     // 飘窗
     var adMove1 = new AdMove("adMove1", true);
     var adMove1 = new AdMove("adMove1", true);
     adMove1.Run();
     adMove1.Run();
 </script>
 </script>
-</html>
+</html>

Datei-Diff unterdrückt, da er zu groß ist
+ 1 - 1
WebRoot/main/websiteTemplatePeview/gzhx/plug-in/superSlide/jquery.SuperSlide.js


+ 1 - 2
WebRoot/web/subassembly/website/10024/10125/1002410125_edit.jsp

@@ -187,7 +187,7 @@
 
 
 	<website-include page="script_pc" />
 	<website-include page="script_pc" />
 
 
-	<script src="/main/dist/RicxMI4qOtA1/js/jquery.superslide.2.1.1.js"></script>
+	<script src="/apps/space/plug-in/jquery.superslide.2.1.1.js?v=20261022-security-1"></script>
 	<script>
 	<script>
 		
 		
 		var isIndex = true;
 		var isIndex = true;
@@ -217,4 +217,3 @@
 
 
 </html>
 </html>
 
 
-

+ 1 - 2
WebRoot/web/subassembly/website/10024/10125/1002410125_run.jsp

@@ -190,7 +190,7 @@
 
 
 	<jsp:include page="/web/subassembly/website/10024/10122/1002410122_run.jsp" flush="true" />
 	<jsp:include page="/web/subassembly/website/10024/10122/1002410122_run.jsp" flush="true" />
 
 
-	<script src="/main/dist/RicxMI4qOtA1/js/jquery.superslide.2.1.1.js"></script>
+	<script src="/apps/space/plug-in/jquery.superslide.2.1.1.js?v=20261022-security-1"></script>
 	<script>
 	<script>
 		
 		
 		var isIndex = true;
 		var isIndex = true;
@@ -221,4 +221,3 @@
 </html>
 </html>
 
 
 
 
-

+ 1 - 1
WebRoot/web/subassembly/website/10024/10130/1002410130_edit.jsp

@@ -62,7 +62,7 @@
 	</body>
 	</body>
 
 
 	<website-include page="script_pc" />
 	<website-include page="script_pc" />
-	<script src="/main/dist/RicxMI4qOtA1/js/jquery.superslide.2.1.1.js" type="text/javascript" charset="utf-8"></script>
+	<script src="/apps/space/plug-in/jquery.superslide.2.1.1.js?v=20261022-security-1" type="text/javascript" charset="utf-8"></script>
 
 
 	<script>
 	<script>
 		var isIndex = true;
 		var isIndex = true;

+ 1 - 2
WebRoot/web/subassembly/website/10024/10130/1002410130_run.jsp

@@ -66,7 +66,7 @@
 	</body>
 	</body>
 
 
 	<jsp:include page="/web/subassembly/website/10024/10122/1002410122_run.jsp" flush="true" />
 	<jsp:include page="/web/subassembly/website/10024/10122/1002410122_run.jsp" flush="true" />
-	<script src="/main/dist/RicxMI4qOtA1/js/jquery.superslide.2.1.1.js" type="text/javascript" charset="utf-8"></script>
+	<script src="/apps/space/plug-in/jquery.superslide.2.1.1.js?v=20261022-security-1" type="text/javascript" charset="utf-8"></script>
 
 
 	<script>
 	<script>
 		var isIndex = true;
 		var isIndex = true;
@@ -89,4 +89,3 @@
 		})
 		})
 	</script>
 	</script>
 </html>
 </html>
-

+ 0 - 2
WebRoot/web/subassembly/website/10053/10310/1005310310_edit.jsp

@@ -13,11 +13,9 @@
 <script src="/main/dist/websites/plug-in/jquery/jquery1.11.3.min.js"></script>
 <script src="/main/dist/websites/plug-in/jquery/jquery1.11.3.min.js"></script>
 <script src="/main/dist/websites/js/common.js"></script>
 <script src="/main/dist/websites/js/common.js"></script>
 <script src="/main/dist/websites/js/AdMove.js"></script>
 <script src="/main/dist/websites/js/AdMove.js"></script>
-<script src="/main/dist/websites/plug-in/superSlide/jquery.SuperSlide.js"></script>
 <link rel="icon" type="image/png" sizes="16x16" href="${website.seoIcon}"> 
 <link rel="icon" type="image/png" sizes="16x16" href="${website.seoIcon}"> 
 <!--[if lt IE 10]>
 <!--[if lt IE 10]>
      <script type="text/javascript">
      <script type="text/javascript">
        document.write("<div style='position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; width: 100%; height: 100%; padding-top: 30px;  background-color: #fff;overflow: auto;'><div style='font-size: 26px; padding-left:60px'><p style='margin-bottom: 30px;font-size: 30px; text-align:center;'>您的浏览器版本太低了,为了达到最佳的浏览效果</p><p style='margin-bottom: 30px;'>一、请使用高版本IE浏览器或者谷歌浏览器!<img src='/apps/space/images/login/Chrome.jpg' style='width:50px;display:inline-block;vertical-align:middle;' /></p>二、若您使用双核浏览器,如360浏览器,请您切换“极速模式”浏览!<p style='margin-top: 30px;font-size: 22px;'>(1)点击地址栏的内核切换按钮,可以手动切换浏览模式。</p><p style='margin: 30px 0;'><img src='/apps/space/images/login/3601.png'style='width:980px' /></p><p style='margin: 30px 0;font-size: 22px;'>(2)选择“极速模式”</p><p style='margin-bottom: 30px;'><img src='/apps/space/images/login/3602.png' style='width:980px' /></p></div></div>")
        document.write("<div style='position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; width: 100%; height: 100%; padding-top: 30px;  background-color: #fff;overflow: auto;'><div style='font-size: 26px; padding-left:60px'><p style='margin-bottom: 30px;font-size: 30px; text-align:center;'>您的浏览器版本太低了,为了达到最佳的浏览效果</p><p style='margin-bottom: 30px;'>一、请使用高版本IE浏览器或者谷歌浏览器!<img src='/apps/space/images/login/Chrome.jpg' style='width:50px;display:inline-block;vertical-align:middle;' /></p>二、若您使用双核浏览器,如360浏览器,请您切换“极速模式”浏览!<p style='margin-top: 30px;font-size: 22px;'>(1)点击地址栏的内核切换按钮,可以手动切换浏览模式。</p><p style='margin: 30px 0;'><img src='/apps/space/images/login/3601.png'style='width:980px' /></p><p style='margin: 30px 0;font-size: 22px;'>(2)选择“极速模式”</p><p style='margin-bottom: 30px;'><img src='/apps/space/images/login/3602.png' style='width:980px' /></p></div></div>")
      </script>
      </script>
 <![endif]-->
 <![endif]-->
-

+ 0 - 2
WebRoot/web/subassembly/website/10053/10310/1005310310_run.jsp

@@ -15,7 +15,6 @@
 <script src="/main/dist/websites/plug-in/jquery/jquery1.11.3.min.js"></script>
 <script src="/main/dist/websites/plug-in/jquery/jquery1.11.3.min.js"></script>
 <script src="/main/dist/websites/js/common.js"></script>
 <script src="/main/dist/websites/js/common.js"></script>
 <script src="/main/dist/websites/js/AdMove.js"></script>
 <script src="/main/dist/websites/js/AdMove.js"></script>
-<script src="/main/dist/websites/plug-in/superSlide/jquery.SuperSlide.js"></script>
 <link rel="icon" type="image/png" sizes="16x16" href="${website.seoIcon}"> 
 <link rel="icon" type="image/png" sizes="16x16" href="${website.seoIcon}"> 
 <!--[if lt IE 10]>
 <!--[if lt IE 10]>
      <script type="text/javascript">
      <script type="text/javascript">
@@ -23,4 +22,3 @@
      </script>
      </script>
 <![endif]-->
 <![endif]-->
 
 
-

+ 6 - 6
WebRoot/web/subassembly/website/10085/10550/1008510550_edit.jsp

@@ -7,13 +7,14 @@
 <link rel="stylesheet" href="/main/dist/websites/css/reset.css">
 <link rel="stylesheet" href="/main/dist/websites/css/reset.css">
 <link rel="stylesheet" href="/main/dist/websites/plug-in/swiper/css/swiper.min.css">
 <link rel="stylesheet" href="/main/dist/websites/plug-in/swiper/css/swiper.min.css">
 <link rel="stylesheet" href="/main/dist/websites/css/common.css">
 <link rel="stylesheet" href="/main/dist/websites/css/common.css">
-<link rel="stylesheet" href="/main/dist/websites/css/common-media.css">
-<link rel="stylesheet" href="/main/dist/websites/css/tsg2.css">
+<link rel="stylesheet" href="/main/dist/websites/css/common-media.css">
+<link rel="stylesheet" href="/main/dist/websites/css/tsg2.css">
+<link rel="stylesheet" href="/main/dist/websites/css/zq-accessible-tabs.css">
 <script src="/main/dist/websites/plug-in/swiper/js/swiper.min.js"></script>
 <script src="/main/dist/websites/plug-in/swiper/js/swiper.min.js"></script>
 <script src="/main/dist/websites/plug-in/jquery/jquery1.11.3.min.js"></script>
 <script src="/main/dist/websites/plug-in/jquery/jquery1.11.3.min.js"></script>
-<script src="/main/dist/websites/js/common.js"></script>
-<script src="/main/dist/websites/js/AdMove.js"></script>
-<script src="/main/dist/websites/plug-in/superSlide/jquery.SuperSlide.js"></script>
+<script src="/main/dist/websites/js/common.js"></script>
+<script src="/main/dist/websites/js/AdMove.js"></script>
+<script src="/main/dist/websites/js/zq-accessible-tabs.js?v=20261022-security-3"></script>
 <link rel="icon" type="image/png" sizes="16x16" href="${website.seoIcon}"> 
 <link rel="icon" type="image/png" sizes="16x16" href="${website.seoIcon}"> 
 <!--[if lt IE 10]>
 <!--[if lt IE 10]>
      <script type="text/javascript">
      <script type="text/javascript">
@@ -21,4 +22,3 @@
      </script>
      </script>
 <![endif]-->
 <![endif]-->
 
 
-

+ 6 - 7
WebRoot/web/subassembly/website/10085/10550/1008510550_run.jsp

@@ -9,13 +9,14 @@
 <link rel="stylesheet" href="/main/dist/websites/css/reset.css">
 <link rel="stylesheet" href="/main/dist/websites/css/reset.css">
 <link rel="stylesheet" href="/main/dist/websites/plug-in/swiper/css/swiper.min.css">
 <link rel="stylesheet" href="/main/dist/websites/plug-in/swiper/css/swiper.min.css">
 <link rel="stylesheet" href="/main/dist/websites/css/common.css">
 <link rel="stylesheet" href="/main/dist/websites/css/common.css">
-<link rel="stylesheet" href="/main/dist/websites/css/common-media.css">
-<link rel="stylesheet" href="/main/dist/websites/css/tsg2.css">
+<link rel="stylesheet" href="/main/dist/websites/css/common-media.css">
+<link rel="stylesheet" href="/main/dist/websites/css/tsg2.css">
+<link rel="stylesheet" href="/main/dist/websites/css/zq-accessible-tabs.css">
 <script src="/main/dist/websites/plug-in/swiper/js/swiper.min.js"></script>
 <script src="/main/dist/websites/plug-in/swiper/js/swiper.min.js"></script>
 <script src="/main/dist/websites/plug-in/jquery/jquery1.11.3.min.js"></script>
 <script src="/main/dist/websites/plug-in/jquery/jquery1.11.3.min.js"></script>
-<script src="/main/dist/websites/js/common.js"></script>
-<script src="/main/dist/websites/js/AdMove.js"></script>
-<script src="/main/dist/websites/plug-in/superSlide/jquery.SuperSlide.js"></script>
+<script src="/main/dist/websites/js/common.js"></script>
+<script src="/main/dist/websites/js/AdMove.js"></script>
+<script src="/main/dist/websites/js/zq-accessible-tabs.js?v=20261022-security-3"></script>
 <link rel="icon" type="image/png" sizes="16x16" href="${website.seoIcon}"> 
 <link rel="icon" type="image/png" sizes="16x16" href="${website.seoIcon}"> 
 <!--[if lt IE 10]>
 <!--[if lt IE 10]>
      <script type="text/javascript">
      <script type="text/javascript">
@@ -23,5 +24,3 @@
      </script>
      </script>
 <![endif]-->
 <![endif]-->
 
 
-
-

+ 2 - 3
WebRoot/web/subassembly/website/10085/10557/1008510557_edit.jsp

@@ -200,8 +200,8 @@
         },
         },
     });
     });
 
 
-    // tabs标签页
-    jQuery(".slideTxtBox").slide({effect:"left", delayTime:200});
+    // tabs标签页
+    ZQAccessibleTabs.init(document);
 
 
     // 飘窗
     // 飘窗
     var adMove1 = new AdMove("adMove1", true);
     var adMove1 = new AdMove("adMove1", true);
@@ -225,4 +225,3 @@
 
 
 
 
 
 
-

+ 2 - 3
WebRoot/web/subassembly/website/10085/10557/1008510557_run.jsp

@@ -204,8 +204,8 @@
         },
         },
     });
     });
 
 
-    // tabs标签页
-    jQuery(".slideTxtBox").slide({effect:"left", delayTime:200});
+    // tabs标签页
+    ZQAccessibleTabs.init(document);
 
 
     // 飘窗
     // 飘窗
     var adMove1 = new AdMove("adMove1", true);
     var adMove1 = new AdMove("adMove1", true);
@@ -230,4 +230,3 @@
 
 
 
 
 
 
-

+ 6 - 6
WebRoot/web/subassembly/website/10086/10559/1008610559_edit.jsp

@@ -7,13 +7,14 @@
 <link rel="stylesheet" href="/main/dist/websites/css/reset.css">
 <link rel="stylesheet" href="/main/dist/websites/css/reset.css">
 <link rel="stylesheet" href="/main/dist/websites/plug-in/swiper/css/swiper.min.css">
 <link rel="stylesheet" href="/main/dist/websites/plug-in/swiper/css/swiper.min.css">
 <link rel="stylesheet" href="/main/dist/websites/css/common.css">
 <link rel="stylesheet" href="/main/dist/websites/css/common.css">
-<link rel="stylesheet" href="/main/dist/websites/css/common-media.css">
-<link rel="stylesheet" href="/main/dist/websites/css/sny.css">
+<link rel="stylesheet" href="/main/dist/websites/css/common-media.css">
+<link rel="stylesheet" href="/main/dist/websites/css/sny.css">
+<link rel="stylesheet" href="/main/dist/websites/css/zq-accessible-tabs.css">
 <script src="/main/dist/websites/plug-in/swiper/js/swiper.min.js"></script>
 <script src="/main/dist/websites/plug-in/swiper/js/swiper.min.js"></script>
 <script src="/main/dist/websites/plug-in/jquery/jquery1.11.3.min.js"></script>
 <script src="/main/dist/websites/plug-in/jquery/jquery1.11.3.min.js"></script>
-<script src="/main/dist/websites/js/common.js"></script>
-<script src="/main/dist/websites/js/AdMove.js"></script>
-<script src="/main/dist/websites/plug-in/superSlide/jquery.SuperSlide.js"></script>
+<script src="/main/dist/websites/js/common.js"></script>
+<script src="/main/dist/websites/js/AdMove.js"></script>
+<script src="/main/dist/websites/js/zq-accessible-tabs.js?v=20261022-security-3"></script>
 <link rel="icon" type="image/png" sizes="16x16" href="${website.seoIcon}"> 
 <link rel="icon" type="image/png" sizes="16x16" href="${website.seoIcon}"> 
 <!--[if lt IE 10]>
 <!--[if lt IE 10]>
      <script type="text/javascript">
      <script type="text/javascript">
@@ -30,4 +31,3 @@
 
 
 
 
 
 
-

+ 6 - 7
WebRoot/web/subassembly/website/10086/10559/1008610559_run.jsp

@@ -9,13 +9,14 @@
 <link rel="stylesheet" href="/main/dist/websites/css/reset.css">
 <link rel="stylesheet" href="/main/dist/websites/css/reset.css">
 <link rel="stylesheet" href="/main/dist/websites/plug-in/swiper/css/swiper.min.css">
 <link rel="stylesheet" href="/main/dist/websites/plug-in/swiper/css/swiper.min.css">
 <link rel="stylesheet" href="/main/dist/websites/css/common.css">
 <link rel="stylesheet" href="/main/dist/websites/css/common.css">
-<link rel="stylesheet" href="/main/dist/websites/css/common-media.css">
-<link rel="stylesheet" href="/main/dist/websites/css/sny.css">
+<link rel="stylesheet" href="/main/dist/websites/css/common-media.css">
+<link rel="stylesheet" href="/main/dist/websites/css/sny.css">
+<link rel="stylesheet" href="/main/dist/websites/css/zq-accessible-tabs.css">
 <script src="/main/dist/websites/plug-in/swiper/js/swiper.min.js"></script>
 <script src="/main/dist/websites/plug-in/swiper/js/swiper.min.js"></script>
 <script src="/main/dist/websites/plug-in/jquery/jquery1.11.3.min.js"></script>
 <script src="/main/dist/websites/plug-in/jquery/jquery1.11.3.min.js"></script>
-<script src="/main/dist/websites/js/common.js"></script>
-<script src="/main/dist/websites/js/AdMove.js"></script>
-<script src="/main/dist/websites/plug-in/superSlide/jquery.SuperSlide.js"></script>
+<script src="/main/dist/websites/js/common.js"></script>
+<script src="/main/dist/websites/js/AdMove.js"></script>
+<script src="/main/dist/websites/js/zq-accessible-tabs.js?v=20261022-security-3"></script>
 <link rel="icon" type="image/png" sizes="16x16" href="${website.seoIcon}"> 
 <link rel="icon" type="image/png" sizes="16x16" href="${website.seoIcon}"> 
 <!--[if lt IE 10]>
 <!--[if lt IE 10]>
      <script type="text/javascript">
      <script type="text/javascript">
@@ -32,5 +33,3 @@
 
 
 
 
 
 
-
-

+ 2 - 3
WebRoot/web/subassembly/website/10086/10566/1008610566_edit.jsp

@@ -412,8 +412,8 @@
         },
         },
     });
     });
 
 
-    // tabs标签页
-    jQuery(".slideTxtBox").slide({effect:"topLoop", trigger:"click", delayTime:200});
+    // tabs标签页
+    ZQAccessibleTabs.init(document);
 
 
     // 飘窗
     // 飘窗
     var adMove1 = new AdMove("adMove1", true);
     var adMove1 = new AdMove("adMove1", true);
@@ -433,4 +433,3 @@
 
 
 
 
 
 
-

+ 2 - 3
WebRoot/web/subassembly/website/10086/10566/1008610566_run.jsp

@@ -416,8 +416,8 @@
         },
         },
     });
     });
 
 
-    // tabs标签页
-    jQuery(".slideTxtBox").slide({effect:"topLoop", trigger:"click", delayTime:200});
+    // tabs标签页
+    ZQAccessibleTabs.init(document);
 
 
     // 飘窗
     // 飘窗
     var adMove1 = new AdMove("adMove1", true);
     var adMove1 = new AdMove("adMove1", true);
@@ -438,4 +438,3 @@
 
 
 
 
 
 
-

+ 99 - 0
docs/网站群前端供应链安全基线.md

@@ -0,0 +1,99 @@
+# 网站群前端供应链安全基线
+
+更新时间:2026-10-22
+
+## 1. 事件结论
+
+EDUSRC 报告中的资产真实存在:
+
+- `http://gh.gzhxtc.edu.cn/main/dist/websites/plug-in/superSlide/jquery.SuperSlide.js`
+- `http://lib.gzhxtc.edu.cn/main/dist/websites/plug-in/superSlide/jquery.SuperSlide.js`
+
+两个 URL 返回同一份 SuperSlide 2.1.3 文件,大小 `11,949` 字节,原始 SHA-256 为 `1d6f3374e6585f541d143d936c0b264b2104d53a9108bcf81d66e895d03287e0`。文件头版权注释包含 `http://www.SuperSlide2.com/`。
+
+本次首页复核还发现 `http://sny.gzhxtc.edu.cn/` 引用同一文件。2026-10-22 最终一轮 35 个公开站点扫描中 34 个返回 200,`cy.gzhxtc.edu.cn` 超时;`jjkp.gzhxtc.edu.cn`、`cys.gzhxtc.edu.cn` 在当日其他轮次也出现过 DNS 抖动。关闭漏洞前仍需从内网或 DNS 侧复核这两个站及其内页。
+
+## 2. 风险判断
+
+该文件由站点本地自托管,不直接从 `SuperSlide2.com` 加载。静态检查未发现对 `superslide2.com` 的主动请求、远程脚本注入、`eval`、`atob` 或动态 `script` 创建。因此本次不能定性为已经发生的挂马或远程代码执行。
+
+仍需要修复的原因:
+
+1. 公开 JS 包含已被报告为不可信的上游域名,会持续触发漏洞扫描和搜索引擎关联。
+2. 插件版本老旧、无来源清单、无固定校验和,后续维护者可能再次从不可信来源更新。
+3. 同一资源存在 2.1.1、2.1.3 和多套运行时副本,缺少统一发布门禁。
+4. 页面若继续依赖该插件,就无法形成“公开页面默认只允许同源脚本”的稳定基线。
+
+## 3. 本次处置
+
+### 3.1 当前落地状态
+
+- 本地源码和本地运行时已完成修复,静态及数据库正文审计为 `0` 个违规。
+- 图书馆、神农苑预览页已通过 Playwright 交互检查:鼠标和键盘切换正常,`1440x900`、`1024x768`、`390x844` 均无横向溢出。
+- hxcs 公网当前仍返回原始文件,SHA-256 仍为 `1d6f3374e6585f541d143d936c0b264b2104d53a9108bcf81d66e895d03287e0`。
+- 旧生产最终扫描确认图书馆、工会、神农苑三个首页仍加载旧文件;本轮未获得可用于发布的 VPN/SSH 连通条件。
+- 因项目发布门禁要求 hxcs 发布前 Git 已提交并推送,本轮在用户未明确要求提交的情况下只完成本地实现,不绕过门禁发布。
+
+### 3.2 已完成的源码处置
+
+- 保留 SuperSlide 原有功能和版权声明,删除两个活动副本中的不可信官网地址。
+- 修复后文件:
+  - `WebRoot/main/dist/websites/plug-in/superSlide/jquery.SuperSlide.js`,SHA-256 `0385e3b9d2d38779a2ca6af1d9ae428c736e79b3ea5054ffd7c6461f1b4346c6`
+  - `WebRoot/apps/space/plug-in/jquery.superslide.2.1.1.js`,SHA-256 `bd77e1e56216c5b28b9d81f4fac995323b03eb1662acb5e943e66f190bdfc209`
+- 旧生产 GH 站对应的 `10053/10310` 组件不再加载 SuperSlide。
+- 图书馆、神农苑对应的 `.slideTxtBox` 标签页改用项目自有 `zq-accessible-tabs.js`,支持鼠标、键盘、ARIA 和无动画切换语义。
+- 旧版预览页同步切换到自有标签控制器。
+- `10024` 旧模板仍保留修复后的 SuperSlide 2.1.1;其原始主题资源 `RicxMI4qOtA1` 不在当前仓库中,必须取得实际运行资源并完成视觉回归后才能迁移到 Swiper。
+
+### 3.3 资产清单与审计
+
+- 资产清单:`security/web-assets.json`
+  - 记录 35 个公开站点。
+  - 记录禁用域名、已批准本地资源、第三方脚本例外、负责人和复审日期。
+- 审计脚本:`local-run/bin/audit-web-supply-chain.py`
+  - 扫描活动模板、组件、上传正文目录和本地运行时引用。
+  - 可通过 MySQL 查询 `article.content`、`article.edit_content` 对应的正文文件。
+  - `--live` 可检查 35 个公开站点首页。
+  - 发现禁用域名、未知第三方脚本、批准资源 hash 漂移时返回非零退出码。
+
+本地静态与数据库正文审计:
+
+```bash
+/usr/bin/python3 local-run/bin/audit-web-supply-chain.py \
+  --db \
+  --mysql /usr/local/mysql-5.7.25-macos10.14-x86_64/bin/mysql \
+  --db-user zq_local \
+  --db-port 3318 \
+  --db-name spaceappsv1 \
+  --json local-run/reports/security/20261022-superslide/audit-local.json
+```
+
+数据库密码只通过当前终端环境或受控执行参数提供,不写入本文件、清单或 Git。
+
+## 4. 第三方脚本基线
+
+公开页面默认只允许同源脚本。以下现网第三方脚本作为临时例外登记,必须在 `2026-12-31` 前完成自托管、供应商 SRI 支持确认或业务下线:
+
+| 域名 | 使用站点 | 负责人 | 状态 |
+| --- | --- | --- | --- |
+| `answer.eol.cn` | 招生办相关页面 | 招生办 | 已登记例外,无 SRI |
+| `robot.chaoxing.com` | 图书馆 | 图书馆 | 已登记例外,无 SRI |
+| `wpa.b.qq.com` | 历史招生页面 | 招生办 | 已登记例外,仅历史页面 |
+
+新增或更换第三方脚本时,必须同时提交来源、版本、SHA-256、负责人、复审日期和 CSP 白名单变更。
+
+## 5. 发布与验收门禁
+
+1. 本地运行审计脚本,`violations` 必须为 `0`。
+2. 本地完整启动后验证 GH、图书馆、神农苑相关组件,检查桌面 `1440px`、平板 `1024px`、手机 `390px`。
+3. hxcs 双节点资源 hash 必须与批准清单一致,两个节点均需检查公开 JS URL 和页面网络请求。
+4. 旧生产必须先只读确认管理侧到外网侧的发布覆盖链路,再通过受控发布入口更新;禁止未经核实同时手改内外网。
+5. 发布后重新访问报告中的两个 URL,确认响应头、文件大小和新 SHA-256;浏览器网络记录中不得出现 `superslide2.com`。
+6. 观察 72 小时内的 404、脚本错误、Tomcat/Nginx 日志和外部漏洞复测结果。
+
+## 6. 后续事项
+
+- 取得 `10024` 模板实际使用的 `RicxMI4qOtA1` 资源后,将 `.slideBox`、`.picSlideBox` 迁移至项目已有 Swiper 5.3.7。
+- 完成迁移并确认全站零调用后,删除 SuperSlide 2.1.1 和 2.1.3,实现最终退役。
+- 历史 `backup` JSP 不直接删除;应在 Web 层禁止访问,确认无业务价值后再移出 webroot。
+- 图书馆页面中的 `picsum.photos` 占位图、`10.0.42.58:8098` 内网链接,以及模板中硬编码的旧生产地址属于独立内容治理事项,不与本次供应链热修混在一起。

+ 3 - 3
local-run/bin/apply-hxcs-nginx-upload-limit.sh

@@ -1,5 +1,5 @@
 #!/usr/bin/env bash
 #!/usr/bin/env bash
-# Apply the tracked HXCS nginx upload limit config to both trial nodes.
+# Apply the tracked HXCS nginx upload and security header config to both trial nodes.
 set -euo pipefail
 set -euo pipefail
 
 
 SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
 SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
@@ -82,11 +82,11 @@ if ! docker exec zq-nginx nginx -t; then
   exit 1
   exit 1
 fi
 fi
 docker exec zq-nginx nginx -s reload
 docker exec zq-nginx nginx -s reload
-docker exec zq-nginx nginx -T 2>/dev/null | grep -E 'client_max_body_size|client_body_timeout|proxy_send_timeout|proxy_read_timeout'
+docker exec zq-nginx nginx -T 2>/dev/null | grep -E 'client_max_body_size|client_body_timeout|Content-Security-Policy-Report-Only|X-Content-Type-Options|Referrer-Policy|X-Frame-Options|proxy_send_timeout|proxy_read_timeout'
 "
 "
 }
 }
 
 
 apply_one "external" "${WEB2_HOST}" "${HXCS_SSH_PASS_WEB2}"
 apply_one "external" "${WEB2_HOST}" "${HXCS_SSH_PASS_WEB2}"
 apply_one "internal" "${WEB_HOST}" "${HXCS_SSH_PASS_WEB}"
 apply_one "internal" "${WEB_HOST}" "${HXCS_SSH_PASS_WEB}"
 
 
-echo "[hxcs-nginx] 完成:HXCS 双节点 nginx 上传限制已同步"
+echo "[hxcs-nginx] 完成:HXCS 双节点上传限制与安全响应头已同步"

+ 452 - 0
local-run/bin/audit-web-supply-chain.py

@@ -0,0 +1,452 @@
+#!/usr/bin/env python3
+"""Audit public web assets and third-party script references for the ZQ site group."""
+
+from __future__ import annotations
+
+import argparse
+import hashlib
+import json
+import os
+import re
+import subprocess
+import sys
+import urllib.parse
+import urllib.request
+from datetime import datetime, timezone
+from pathlib import Path
+from typing import Any
+
+
+ROOT = Path(__file__).resolve().parents[2]
+DEFAULT_MANIFEST = ROOT / "security" / "web-assets.json"
+SCAN_ROOTS = (
+    "WebRoot/main",
+    "WebRoot/apps",
+    "WebRoot/web/upload/ffkj-template",
+    "WebRoot/web/subassembly/website",
+)
+EXCLUDED_PREFIXES = (
+    "WebRoot/main/dev/",
+    "WebRoot/apps/space/plug-in/ueditor/dialogs/",
+)
+TEXT_SUFFIXES = {".jsp", ".html", ".htm", ".js", ".css", ".xml", ".json", ".txt"}
+SCRIPT_RE = re.compile(r"<script\b[^>]*>", re.IGNORECASE)
+SRC_RE = re.compile(r"\bsrc\s*=\s*[\"']([^\"']+)", re.IGNORECASE)
+INTEGRITY_RE = re.compile(r"\bintegrity\s*=", re.IGNORECASE)
+HTTP_URL_RE = re.compile(r"https?://[^\s\"'<>)]+", re.IGNORECASE)
+SUPERSLIDE_CALL_RE = re.compile(
+    r"\.(?:slideTxtBox|slideBox|picSlideBox)[^;\n]*\.slide\s*\(",
+    re.IGNORECASE,
+)
+MAX_FILE_BYTES = 8 * 1024 * 1024
+
+
+def load_manifest(path: Path) -> dict[str, Any]:
+    with path.open(encoding="utf-8") as handle:
+        return json.load(handle)
+
+
+def sha256(path: Path) -> str:
+    digest = hashlib.sha256()
+    with path.open("rb") as handle:
+        for chunk in iter(lambda: handle.read(1024 * 1024), b""):
+            digest.update(chunk)
+    return digest.hexdigest()
+
+
+def is_skipped(path: Path, include_backups: bool) -> bool:
+    parts = set(path.parts)
+    if ".git" in parts or "node_modules" in parts:
+        return True
+    if not include_backups and "backup" in parts:
+        return True
+    try:
+        return path.stat().st_size > MAX_FILE_BYTES
+    except OSError:
+        return True
+
+
+def external_script_records(text: str, page_url: str) -> list[dict[str, Any]]:
+    records: list[dict[str, Any]] = []
+    text = re.sub(r"<!--.*?-->", "", text, flags=re.DOTALL)
+    for tag in SCRIPT_RE.findall(text):
+        match = SRC_RE.search(tag)
+        if not match:
+            continue
+        raw_url = match.group(1).strip()
+        if (
+            not raw_url
+            or raw_url.startswith(("#", "javascript:", "data:"))
+            or "${" in raw_url
+        ):
+            continue
+        absolute = urllib.parse.urljoin(page_url, raw_url)
+        parsed = urllib.parse.urlparse(absolute)
+        if parsed.scheme not in ("http", "https"):
+            continue
+        page_host = (urllib.parse.urlparse(page_url).hostname or "").lower()
+        script_host = (parsed.hostname or "").lower()
+        records.append(
+            {
+                "url": absolute,
+                "host": script_host,
+                "path": parsed.path,
+                "hasIntegrity": bool(INTEGRITY_RE.search(tag)),
+                "isExternal": bool(script_host and script_host != page_host),
+                "tag": tag,
+            }
+        )
+    return records
+
+
+def exception_for(host: str, path: str, manifest: dict[str, Any]) -> dict[str, Any] | None:
+    for item in manifest.get("externalScriptExceptions", []):
+        if host == item.get("host", "").lower() and path.startswith(item.get("pathPrefix", "")):
+            return item
+    return None
+
+
+def scan_text_file(path: Path, manifest: dict[str, Any]) -> dict[str, Any]:
+    relative = path.relative_to(ROOT).as_posix()
+    result: dict[str, Any] = {
+        "path": relative,
+        "bannedDomains": [],
+        "externalScripts": [],
+        "superSlideCalls": 0,
+    }
+    try:
+        text = path.read_text(encoding="utf-8", errors="replace")
+    except OSError as exc:
+        result["readError"] = str(exc)
+        return result
+
+    lowered = text.lower()
+    for domain in manifest.get("bannedDomains", []):
+        if domain.lower() in lowered:
+            result["bannedDomains"].append(domain)
+
+    if path.suffix.lower() in {".jsp", ".html", ".htm"}:
+        result["externalScripts"] = [
+            script
+            for script in external_script_records(text, "https://local.invalid/")
+            if script["isExternal"]
+        ]
+    result["superSlideCalls"] = len(SUPERSLIDE_CALL_RE.findall(text))
+    return result
+
+
+def scan_static(manifest: dict[str, Any], include_backups: bool) -> dict[str, Any]:
+    files: list[dict[str, Any]] = []
+    violations: list[dict[str, Any]] = []
+    warnings: list[dict[str, Any]] = []
+    for root_name in SCAN_ROOTS:
+        root = ROOT / root_name
+        if not root.exists():
+            continue
+        for path in root.rglob("*"):
+            if not path.is_file() or path.suffix.lower() not in TEXT_SUFFIXES:
+                continue
+            relative = path.relative_to(ROOT).as_posix()
+            if relative.startswith(EXCLUDED_PREFIXES):
+                continue
+            if is_skipped(path, include_backups):
+                continue
+            record = scan_text_file(path, manifest)
+            if not record["bannedDomains"] and not record["externalScripts"] and not record["superSlideCalls"]:
+                continue
+            files.append(record)
+            if record["bannedDomains"]:
+                violations.append(
+                    {
+                        "type": "banned-domain",
+                        "path": record["path"],
+                        "domains": record["bannedDomains"],
+                    }
+                )
+            for script in record["externalScripts"]:
+                exception = exception_for(script["host"], script["path"], manifest)
+                if exception is None:
+                    violations.append(
+                        {
+                            "type": "unapproved-external-script",
+                            "path": record["path"],
+                            "url": script["url"],
+                        }
+                    )
+                elif not script["hasIntegrity"]:
+                    warnings.append(
+                        {
+                            "type": "external-script-without-integrity",
+                            "path": record["path"],
+                            "url": script["url"],
+                            "owner": exception.get("owner", ""),
+                        }
+                    )
+            if record["superSlideCalls"]:
+                warnings.append(
+                    {
+                        "type": "legacy-superslide-call",
+                        "path": record["path"],
+                        "count": record["superSlideCalls"],
+                    }
+                )
+
+    for asset in manifest.get("approvedLocalAssets", []):
+        path = ROOT / asset["path"]
+        if not path.exists():
+            violations.append({"type": "approved-asset-missing", "path": asset["path"]})
+            continue
+        actual = sha256(path)
+        if actual != asset["sha256"]:
+            violations.append(
+                {
+                    "type": "approved-asset-hash-mismatch",
+                    "path": asset["path"],
+                    "expected": asset["sha256"],
+                    "actual": actual,
+                }
+            )
+
+    return {"files": files, "violations": violations, "warnings": warnings}
+
+
+def mysql_command(args: argparse.Namespace) -> list[str]:
+    command = [
+        args.mysql,
+        "--batch",
+        "--skip-column-names",
+        "--default-character-set=utf8mb4",
+        "--user",
+        args.db_user,
+    ]
+    if args.db_socket:
+        command.extend(["--socket", args.db_socket])
+    else:
+        command.extend(["--host", args.db_host, "--port", str(args.db_port)])
+    if args.db_password:
+        command.append(f"--password={args.db_password}")
+    command.append(args.db_name)
+    return command + ["--execute", args.db_query]
+
+
+def scan_db(manifest: dict[str, Any], args: argparse.Namespace) -> dict[str, Any]:
+    env = os.environ.copy()
+    password = args.db_password or env.get("ZQ_DB_PASSWORD") or env.get("ZQ_APP_DB_PASSWORD")
+    if password:
+        env["MYSQL_PWD"] = password
+    try:
+        completed = subprocess.run(
+            mysql_command(args),
+            cwd=ROOT,
+            env=env,
+            text=True,
+            capture_output=True,
+            check=False,
+        )
+    except OSError as exc:
+        return {"error": str(exc), "paths": [], "findings": [], "warnings": []}
+    if completed.returncode != 0:
+        return {
+            "error": completed.stderr.strip() or f"mysql exited {completed.returncode}",
+            "paths": [],
+            "findings": [],
+            "warnings": [],
+        }
+
+    paths: list[dict[str, Any]] = []
+    findings: list[dict[str, Any]] = []
+    warnings: list[dict[str, Any]] = []
+    for line in completed.stdout.splitlines():
+        if not line.strip():
+            continue
+        fields = line.split("\t")
+        if len(fields) != 4:
+            continue
+        article_id, website_id, content_path, edit_content_path = fields
+        for kind, value in (("content", content_path), ("editContent", edit_content_path)):
+            if not value:
+                continue
+            candidate = ROOT / "WebRoot" / value.lstrip("/")
+            record = {
+                "articleId": article_id,
+                "websiteId": website_id,
+                "kind": kind,
+                "registeredPath": value,
+                "resolvedPath": candidate.relative_to(ROOT).as_posix(),
+                "exists": candidate.exists(),
+            }
+            paths.append(record)
+            if not candidate.exists():
+                warnings.append({"type": "db-content-file-missing", **record})
+                continue
+            scanned = scan_text_file(candidate, manifest)
+            if scanned["bannedDomains"]:
+                findings.append(
+                    {
+                        "type": "banned-domain-in-db-content",
+                        **record,
+                        "domains": scanned["bannedDomains"],
+                    }
+                )
+    return {"error": "", "paths": paths, "findings": findings, "warnings": warnings}
+
+
+def fetch_live(url: str, timeout: int) -> tuple[int, str, str]:
+    request = urllib.request.Request(
+        url,
+        headers={"User-Agent": "Mozilla/5.0 (compatible; ZQ-security-audit/1.0)"},
+    )
+    with urllib.request.urlopen(request, timeout=timeout) as response:
+        charset = response.headers.get_content_charset() or "utf-8"
+        return response.status, response.geturl(), response.read(4_000_000).decode(charset, "replace")
+
+
+def scan_live(manifest: dict[str, Any], timeout: int) -> dict[str, Any]:
+    records: list[dict[str, Any]] = []
+    violations: list[dict[str, Any]] = []
+    for site in manifest.get("websites", []):
+        record: dict[str, Any] = {"name": site["name"], "url": site["url"]}
+        try:
+            status, final_url, body = fetch_live(site["url"], timeout)
+            scripts = external_script_records(body, final_url)
+            bad_domains = [domain for domain in manifest.get("bannedDomains", []) if domain.lower() in body.lower()]
+            record.update(
+                {
+                    "status": status,
+                    "finalUrl": final_url,
+                    "bannedDomains": bad_domains,
+                    "externalScripts": scripts,
+                }
+            )
+            if bad_domains:
+                violations.append({"type": "banned-domain-live", "site": site["name"], "domains": bad_domains})
+            for script in scripts:
+                if not script["isExternal"]:
+                    continue
+                exception = exception_for(script["host"], script["path"], manifest)
+                if exception is None:
+                    violations.append(
+                        {
+                            "type": "unapproved-external-script-live",
+                            "site": site["name"],
+                            "url": script["url"],
+                        }
+                    )
+            same_origin_assets: list[dict[str, Any]] = []
+            seen_scripts: set[str] = set()
+            for script in scripts:
+                if script["isExternal"] or script["url"] in seen_scripts:
+                    continue
+                seen_scripts.add(script["url"])
+                try:
+                    _, _, script_body = fetch_live(script["url"], timeout)
+                except Exception as exc:
+                    same_origin_assets.append(
+                        {
+                            "url": script["url"],
+                            "status": 0,
+                            "error": f"{type(exc).__name__}: {exc}",
+                        }
+                    )
+                    continue
+                script_bad_domains = [
+                    domain for domain in manifest.get("bannedDomains", []) if domain.lower() in script_body.lower()
+                ]
+                asset = {
+                    "url": script["url"],
+                    "status": 200,
+                    "sha256": hashlib.sha256(script_body.encode("utf-8")).hexdigest(),
+                    "bannedDomains": script_bad_domains,
+                }
+                same_origin_assets.append(asset)
+                if script_bad_domains:
+                    violations.append(
+                        {
+                            "type": "banned-domain-live-script",
+                            "site": site["name"],
+                            "url": script["url"],
+                            "domains": script_bad_domains,
+                        }
+                    )
+            record["sameOriginScripts"] = same_origin_assets
+        except Exception as exc:  # network failures are reported, not hidden
+            record.update({"status": 0, "error": f"{type(exc).__name__}: {exc}"})
+        records.append(record)
+    return {"records": records, "violations": violations}
+
+
+def parse_args() -> argparse.Namespace:
+    parser = argparse.ArgumentParser(description=__doc__)
+    parser.add_argument("--manifest", type=Path, default=DEFAULT_MANIFEST)
+    parser.add_argument("--json", type=Path, help="write the full JSON report")
+    parser.add_argument("--include-backups", action="store_true")
+    parser.add_argument("--verbose", action="store_true")
+    parser.add_argument("--live", action="store_true")
+    parser.add_argument("--live-timeout", type=int, default=20)
+    parser.add_argument("--db", action="store_true")
+    parser.add_argument("--mysql", default=os.environ.get("ZQ_MYSQL_BIN", "mysql"))
+    parser.add_argument("--db-host", default=os.environ.get("ZQ_DB_HOST", "127.0.0.1"))
+    parser.add_argument("--db-port", type=int, default=int(os.environ.get("ZQ_DB_PORT", "3318")))
+    parser.add_argument("--db-socket", default=os.environ.get("ZQ_DB_SOCKET", ""))
+    parser.add_argument("--db-user", default=os.environ.get("ZQ_DB_USER", "zq_local"))
+    parser.add_argument("--db-password", default=os.environ.get("ZQ_DB_PASSWORD", ""))
+    parser.add_argument("--db-name", default=os.environ.get("ZQ_APPS_DB_NAME", "spaceappsv1"))
+    parser.add_argument(
+        "--db-query",
+        default="SELECT articleid,websiteid,content,COALESCE(edit_content,'') FROM article ORDER BY articleid",
+    )
+    return parser.parse_args()
+
+
+def main() -> int:
+    args = parse_args()
+    manifest = load_manifest(args.manifest)
+    static = scan_static(manifest, args.include_backups)
+    db = (
+        scan_db(manifest, args)
+        if args.db
+        else {"error": "", "paths": [], "findings": [], "warnings": []}
+    )
+    live = scan_live(manifest, args.live_timeout) if args.live else {"records": [], "violations": []}
+    violations = static["violations"] + db["findings"] + live["violations"]
+    if args.db and db["error"]:
+        violations.append({"type": "database-audit-failed", "error": db["error"]})
+    warnings = static["warnings"] + db["warnings"]
+    report = {
+        "generatedAt": datetime.now(timezone.utc).isoformat(),
+        "manifest": args.manifest.relative_to(ROOT).as_posix(),
+        "summary": {
+            "websites": len(manifest.get("websites", [])),
+            "filesWithSignals": len(static["files"]),
+            "dbContentPaths": len(db["paths"]),
+            "liveChecked": len(live["records"]),
+            "violations": len(violations),
+            "warnings": len(warnings),
+            "dbError": db["error"],
+        },
+        "violations": violations,
+        "warnings": warnings,
+        "staticFiles": static["files"],
+        "db": db,
+        "live": live,
+    }
+    if args.json:
+        args.json.parent.mkdir(parents=True, exist_ok=True)
+        args.json.write_text(json.dumps(report, ensure_ascii=False, indent=2) + "\n", encoding="utf-8")
+
+    print(
+        "sites={websites} signals={filesWithSignals} dbPaths={dbContentPaths} "
+        "live={liveChecked} violations={violations} warnings={warnings}".format(**report["summary"])
+    )
+    if db["error"]:
+        print(f"database: {db['error']}", file=sys.stderr)
+    for violation in violations:
+        print(f"VIOLATION {json.dumps(violation, ensure_ascii=False)}", file=sys.stderr)
+    if args.verbose:
+        for warning in warnings:
+            print(f"WARNING {json.dumps(warning, ensure_ascii=False)}", file=sys.stderr)
+    return 1 if violations else 0
+
+
+if __name__ == "__main__":
+    raise SystemExit(main())

+ 38 - 0
local-run/bin/sync-to-hxcs-prod.sh

@@ -332,6 +332,17 @@ verify_migrations_are_tracked() {
 	ok "迁移目录全部来自当前 Git 提交"
 	ok "迁移目录全部来自当前 Git 提交"
 }
 }
 
 
+run_web_supply_chain_audit() {
+	local audit_json="${REPORT_DIR}/security/web-supply-chain-$(date +%Y%m%d-%H%M%S).json"
+	log "检查公开前端供应链基线..."
+	mkdir -p "$(dirname "${audit_json}")"
+	if ! /usr/bin/python3 "${SCRIPT_DIR}/audit-web-supply-chain.py" --json "${audit_json}" >> "${REPORT_FILE}" 2>&1; then
+		fail "公开前端供应链审计未通过,禁止发布。报告:${audit_json}"
+		return 1
+	fi
+	ok "公开前端供应链审计通过:${audit_json}"
+}
+
 sync_static_files() {
 sync_static_files() {
 	local webapp="$1"
 	local webapp="$1"
 	local label="$2"
 	local label="$2"
@@ -341,6 +352,31 @@ sync_static_files() {
 
 
 	log "同步静态资源到 ${label} (${host})..."
 	log "同步静态资源到 ${label} (${host})..."
 
 
+	# 前端供应链安全热修(仅同步本次批准文件)
+	rsync_to "${host}" "${password}" "${webapp}/main/dist/websites/plug-in/superSlide/" \
+		"${PROJECT_ROOT}/WebRoot/main/dist/websites/plug-in/superSlide/"
+	rsync_to "${host}" "${password}" "${webapp}/main/dist/websites/js/" \
+		"${PROJECT_ROOT}/WebRoot/main/dist/websites/js/zq-accessible-tabs.js"
+	rsync_to "${host}" "${password}" "${webapp}/main/dist/websites/css/" \
+		"${PROJECT_ROOT}/WebRoot/main/dist/websites/css/zq-accessible-tabs.css"
+	rsync_to "${host}" "${password}" "${webapp}/apps/space/plug-in/" \
+		"${PROJECT_ROOT}/WebRoot/apps/space/plug-in/jquery.superslide.2.1.1.js"
+	for preview_file in pageNewest-tsg2/index.html pageNewest-sny/index.html; do
+		rsync_to "${host}" "${password}" "${webapp}/main/websiteTemplatePeview/gzhx/$(dirname "${preview_file}")/" \
+			"${PROJECT_ROOT}/WebRoot/main/websiteTemplatePeview/gzhx/${preview_file}"
+	done
+	for security_jsp in \
+		"10024/10125/1002410125_edit.jsp" "10024/10125/1002410125_run.jsp" \
+		"10024/10130/1002410130_edit.jsp" "10024/10130/1002410130_run.jsp" \
+		"10053/10310/1005310310_edit.jsp" "10053/10310/1005310310_run.jsp" \
+		"10085/10550/1008510550_edit.jsp" "10085/10550/1008510550_run.jsp" \
+		"10085/10557/1008510557_edit.jsp" "10085/10557/1008510557_run.jsp" \
+		"10086/10559/1008610559_edit.jsp" "10086/10559/1008610559_run.jsp" \
+		"10086/10566/1008610566_edit.jsp" "10086/10566/1008610566_run.jsp"; do
+		rsync_to "${host}" "${password}" "${webapp}/web/subassembly/website/$(dirname "${security_jsp}")/" \
+			"${PROJECT_ROOT}/WebRoot/web/subassembly/website/${security_jsp}"
+	done
+
 	# ffkj 模板 JSP/CSS
 	# ffkj 模板 JSP/CSS
 	rsync_to "${host}" "${password}" "${webapp}/web/upload/ffkj-template/" \
 	rsync_to "${host}" "${password}" "${webapp}/web/upload/ffkj-template/" \
 		"${PROJECT_ROOT}/WebRoot/web/upload/ffkj-template/"
 		"${PROJECT_ROOT}/WebRoot/web/upload/ffkj-template/"
@@ -1296,6 +1332,7 @@ case "${MODE}" in
 		;;
 		;;
 	--files-only)
 	--files-only)
 		require_release_source
 		require_release_source
+		run_web_supply_chain_audit
 		compile_deploy_classes
 		compile_deploy_classes
 		sync_static_files "${INTERNAL_WEBAPP}" "internal" "${WEB_HOST}"
 		sync_static_files "${INTERNAL_WEBAPP}" "internal" "${WEB_HOST}"
 		sync_static_files "${EXTERNAL_WEBAPP}" "external" "${WEB2_HOST}"
 		sync_static_files "${EXTERNAL_WEBAPP}" "external" "${WEB2_HOST}"
@@ -1313,6 +1350,7 @@ case "${MODE}" in
 		;;
 		;;
 	all)
 	all)
 		require_release_source
 		require_release_source
+		run_web_supply_chain_audit
 		compile_deploy_classes
 		compile_deploy_classes
 		sync_huaxia_news_resources
 		sync_huaxia_news_resources
 		run_db_sync
 		run_db_sync

+ 10 - 0
local-run/deploy/hxcs/nginx/default.conf

@@ -4,6 +4,16 @@ server {
     client_max_body_size 1200m;
     client_max_body_size 1200m;
     client_body_timeout 1800s;
     client_body_timeout 1800s;
 
 
+    # Report-only first: the legacy JSP pages still rely on inline scripts.
+    add_header Content-Security-Policy-Report-Only "script-src 'self' 'unsafe-inline' https://answer.eol.cn https://robot.chaoxing.com https://wpa.b.qq.com; object-src 'none'; base-uri 'self'; frame-ancestors 'self';" always;
+    add_header X-Content-Type-Options nosniff always;
+    add_header Referrer-Policy strict-origin-when-cross-origin always;
+    add_header X-Frame-Options SAMEORIGIN always;
+
+    location ~ ^/web/subassembly/.*/backup/ {
+        return 404;
+    }
+
     location / {
     location / {
         proxy_pass http://172.17.0.1:8080;
         proxy_pass http://172.17.0.1:8080;
         proxy_set_header Host $host;
         proxy_set_header Host $host;

+ 251 - 0
security/web-assets.json

@@ -0,0 +1,251 @@
+{
+  "schemaVersion": 1,
+  "updatedAt": "2026-10-22",
+  "policy": {
+    "publicScriptDefault": "same-origin",
+    "allowRemoteScriptsOnlyWhenListed": true,
+    "requireIntegrityForRemoteScripts": true,
+    "retirementDeadline": "2026-12-31"
+  },
+  "bannedDomains": [
+    "superslide2.com"
+  ],
+  "websites": [
+    {
+      "name": "主站",
+      "url": "http://www.gzhxtc.edu.cn/",
+      "category": "一级官网"
+    },
+    {
+      "name": "机构设置",
+      "url": "http://jgsz.gzhxtc.edu.cn/",
+      "category": "内容门户"
+    },
+    {
+      "name": "经济与管理学院",
+      "url": "http://gl.gzhxtc.edu.cn/",
+      "category": "教学单位"
+    },
+    {
+      "name": "建筑与艺术传媒学院",
+      "url": "http://jianyi.gzhxtc.edu.cn/",
+      "category": "教学单位"
+    },
+    {
+      "name": "车辆与自动化学院",
+      "url": "http://cl.gzhxtc.edu.cn/",
+      "category": "教学单位"
+    },
+    {
+      "name": "信息工程学院",
+      "url": "http://xx.gzhxtc.edu.cn/",
+      "category": "教学单位"
+    },
+    {
+      "name": "卫生健康学院",
+      "url": "http://wj.gzhxtc.edu.cn/",
+      "category": "教学单位"
+    },
+    {
+      "name": "创新创业学院",
+      "url": "http://cy.gzhxtc.edu.cn/",
+      "category": "教学单位"
+    },
+    {
+      "name": "马克思主义学院",
+      "url": "http://szb.gzhxtc.edu.cn/",
+      "category": "教学单位"
+    },
+    {
+      "name": "教育学院",
+      "url": "http://edu.gzhxtc.edu.cn/",
+      "category": "教学单位"
+    },
+    {
+      "name": "体育部",
+      "url": "http://tyb.gzhxtc.edu.cn/",
+      "category": "教学单位"
+    },
+    {
+      "name": "学院办公室",
+      "url": "http://bg.gzhxtc.edu.cn/",
+      "category": "行政教辅"
+    },
+    {
+      "name": "教务处",
+      "url": "http://jwc.gzhxtc.edu.cn/",
+      "category": "行政教辅"
+    },
+    {
+      "name": "人事处",
+      "url": "http://hr.gzhxtc.edu.cn/",
+      "category": "行政教辅"
+    },
+    {
+      "name": "规划与质量监控办",
+      "url": "http://dd.gzhxtc.edu.cn/",
+      "category": "行政教辅"
+    },
+    {
+      "name": "财务处",
+      "url": "http://cw.gzhxtc.edu.cn/",
+      "category": "行政教辅"
+    },
+    {
+      "name": "实训及技能鉴定中心",
+      "url": "http://sxzx.gzhxtc.edu.cn/",
+      "category": "行政教辅"
+    },
+    {
+      "name": "团委",
+      "url": "http://tw.gzhxtc.edu.cn/",
+      "category": "行政教辅"
+    },
+    {
+      "name": "继续教育学院",
+      "url": "http://jx.gzhxtc.edu.cn/",
+      "category": "行政教辅"
+    },
+    {
+      "name": "党委组织部/武装部",
+      "url": "http://dzb.gzhxtc.edu.cn/",
+      "category": "行政教辅"
+    },
+    {
+      "name": "学生处",
+      "url": "http://xsc.gzhxtc.edu.cn/",
+      "category": "行政教辅"
+    },
+    {
+      "name": "科研处",
+      "url": "http://kyc.gzhxtc.edu.cn/",
+      "category": "行政教辅"
+    },
+    {
+      "name": "就业与校企合作办",
+      "url": "http://jy.gzhxtc.edu.cn/",
+      "category": "行政教辅"
+    },
+    {
+      "name": "招生办",
+      "url": "http://zsw.gzhxtc.edu.cn/",
+      "category": "行政教辅"
+    },
+    {
+      "name": "图书馆",
+      "url": "http://lib.gzhxtc.edu.cn/",
+      "category": "行政教辅"
+    },
+    {
+      "name": "总务处",
+      "url": "http://hqc.gzhxtc.edu.cn/",
+      "category": "行政教辅"
+    },
+    {
+      "name": "工会",
+      "url": "http://gh.gzhxtc.edu.cn/",
+      "category": "行政教辅"
+    },
+    {
+      "name": "招投标中心",
+      "url": "http://ztb.gzhxtc.edu.cn/",
+      "category": "行政教辅"
+    },
+    {
+      "name": "新闻中心",
+      "url": "http://news.gzhxtc.edu.cn/",
+      "category": "内容门户"
+    },
+    {
+      "name": "国际交流",
+      "url": "http://gjjl.gzhxtc.edu.cn/",
+      "category": "内容门户"
+    },
+    {
+      "name": "法治专项",
+      "url": "http://fzzxgz.gzhxtc.edu.cn/",
+      "category": "专题站"
+    },
+    {
+      "name": "急救教育基地",
+      "url": "http://jjkp.gzhxtc.edu.cn/",
+      "category": "专题站"
+    },
+    {
+      "name": "神农苑",
+      "url": "http://sny.gzhxtc.edu.cn/",
+      "category": "专题站"
+    },
+    {
+      "name": "校园风貌",
+      "url": "http://xyfm.gzhxtc.edu.cn/",
+      "category": "专题站"
+    },
+    {
+      "name": "产业学院",
+      "url": "http://cys.gzhxtc.edu.cn/",
+      "category": "扩展发现"
+    }
+  ],
+  "approvedLocalAssets": [
+    {
+      "path": "WebRoot/main/dist/websites/plug-in/superSlide/jquery.SuperSlide.js",
+      "name": "SuperSlide",
+      "version": "2.1.3-sanitized",
+      "sha256": "0385e3b9d2d38779a2ca6af1d9ae428c736e79b3ea5054ffd7c6461f1b4346c6",
+      "status": "retained-phase1",
+      "source": "legacy vendored asset; upstream URL removed on 2026-10-22",
+      "owner": "站群前端维护",
+      "reviewBy": "2026-12-31"
+    },
+    {
+      "path": "WebRoot/apps/space/plug-in/jquery.superslide.2.1.1.js",
+      "name": "SuperSlide",
+      "version": "2.1.1-sanitized",
+      "sha256": "bd77e1e56216c5b28b9d81f4fac995323b03eb1662acb5e943e66f190bdfc209",
+      "status": "retained-phase1",
+      "source": "legacy vendored asset; upstream URL removed on 2026-10-22",
+      "owner": "站群前端维护",
+      "reviewBy": "2026-12-31"
+    },
+    {
+      "path": "WebRoot/main/dist/websites/js/zq-accessible-tabs.js",
+      "name": "ZQ Accessible Tabs",
+      "version": "1.0.0",
+      "sha256": "85402fb85da261cd8a54e9771eaa62a83ac55516c730ca7c7e35a86d5dab996d",
+      "status": "approved",
+      "source": "project-owned",
+      "owner": "站群前端维护",
+      "reviewBy": "2027-04-22"
+    }
+  ],
+  "externalScriptExceptions": [
+    {
+      "host": "answer.eol.cn",
+      "pathPrefix": "/school/pc/school2858.js",
+      "status": "approved-exception",
+      "integrityRequired": false,
+      "owner": "招生办",
+      "reason": "第三方招生咨询组件,替代前需确认业务方与供应商支持 SRI 的条件",
+      "reviewBy": "2026-12-31"
+    },
+    {
+      "host": "robot.chaoxing.com",
+      "pathPrefix": "/sdk/CxRobotSdkJs.js",
+      "status": "approved-exception",
+      "integrityRequired": false,
+      "owner": "图书馆",
+      "reason": "超星数字图书馆服务提供的外部 SDK",
+      "reviewBy": "2026-12-31"
+    },
+    {
+      "host": "wpa.b.qq.com",
+      "pathPrefix": "/cgi/wpa.php",
+      "status": "approved-exception",
+      "integrityRequired": false,
+      "owner": "招生办",
+      "reason": "腾讯企点历史访客组件,仅保留于历史页面",
+      "reviewBy": "2026-12-31"
+    }
+  ]
+}

Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.