Skip to content

Commit 2adb624

Browse files
committed
1
1 parent 5c34517 commit 2adb624

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ https://bddjr.github.io/CCW-Code-Injection-Risk-Warning/CCW-Code-Injection-Risk-
1010

1111
> [!CAUTION]
1212
> 该脚本无法拦截使用标签页访问 m.ccw.site 加载恶意 svg 的代码注入攻击。
13-
> 使用 iframe 嵌入 m.ccw.site 加载恶意 svg 也可以执行恶意代码。
13+
> 在第三方网站使用 iframe 嵌入 m.ccw.site 加载恶意 svg 也可以执行恶意代码。
1414
> 该漏洞可以被攻击者用于盗号。
1515
> 漏洞演示:https://m.ccw.site/user_projects_assets/a8039314e7b97ea48e176b34090b680e.svg
16-
> 建议根据按照以下步骤操作,增强安全性:
16+
>
17+
> 建议根据按照以下步骤操作,禁止 m.ccw.site 运行 JavaScript ,以增强安全性:
1718
>
1819
> - 如果您使用 Google Chrome 浏览器:
1920
> 访问 https://m.ccw.site ,然后点击网址左侧的按钮,然后点击“网站设置”,然后将“JavaScript”权限改为“阻止”。
@@ -22,11 +23,11 @@ https://bddjr.github.io/CCW-Code-Injection-Risk-Warning/CCW-Code-Injection-Risk-
2223
> 访问 https://m.ccw.site ,然后点击网址左侧的🔒按钮,然后点击“此网站的权限”,然后将“JavaScript”权限改为“阻止”。
2324
>
2425
> - 如果您使用 Mozilla Firefox 浏览器:
25-
> 无法禁用网站的 JavaScript 权限,建议更换浏览器。
26+
> 详见 https://support.mozilla.org/zh-CN/kb/javascript-settings-for-interactive-web-pages
2627
2728
> [!CAUTION]
2829
> 攻击者成功注入恶意代码之后,可以盗取浏览器自动填充的账号密码,即使网页未显示输入框。
29-
> 建议禁用浏览器的自动填充密码,或者改为“在查看或填写网站密码之前提示设备登录选项。始终征求许可”
30+
> 建议禁用浏览器的自动填充密码,或者改为 “在查看或填写网站密码之前提示设备登录选项。始终征求许可”
3031
>
3132
> ![3](readme-image/3.png)
3233

const meta = document.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// (实验性)限制网站可以使用的资源来源。
2+
// 不建议使用,这会影响一些必须对外交互的作品,例如KukeChat
13
const meta = document.createElement('meta')
24
meta.setAttribute('http-equiv', 'content-security-policy')
35
meta.setAttribute('content', `default-src 'self' 'unsafe-eval' 'unsafe-inline' https://*.ccw.site https://*.xiguacity.cn https://zhishi.oss-cn-beijing.aliyuncs.com/ https://*.qq.com;`)

0 commit comments

Comments
 (0)