Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2023-34840 — angular-ui-notification 中的 XSS | Kitploit
工具/GitHubGitHub/xh4h/cve-2023-34840
漏洞分析Web应用程序漏洞利用Web安全论文与研究学习与教育
GitHubxh4h/cve-2023-34840

CVE-2023-34840

angular-ui-notification 中的 XSS

查看仓库
323年前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2023-34840

漏洞说明

angular-ui-notification 的所有版本都存在 XSS 漏洞,因为该库没有对用户提供的输入进行转义。

为了安全使用该库,强烈建议对传递给该库的参数进行转义/编码,例如以下方式:

root@kitploit:~
private sanitizeHTML(str: string) {
    return str.replace(/[^\w. ]/gi, (c) => `&#${c.charCodeAt(0)};`);
  }

利用

假设该库已经导入并被某个项目使用。该库的使用方式可能如下:

root@kitploit:~
private showNotification(message: string, delay: number, type: NotificationType) {
  this.Notification.clearAll();
  
  this.Notification[type]({
    message,
    delay,
    replaceMessage: true
  });
}

如果前端直接将任何用户输入传递给 message 参数,任何 <script> 标签都足以执行 XSS 攻击。

简单的 <script>alert(1)</script> 就足够了。

测试版本

  • https://github.com/alexcrack/angular-ui-notification - 0.1.0
  • https://github.com/alexcrack/angular-ui-notification - 0.2.0
  • https://github.com/alexcrack/angular-ui-notification - 0.3.6

发现者

Xh4H

最后说明

该项目似乎不再维护,因此我强烈建议使用仍在维护的替代方案。

下载工具