Skip to content

安全问题:数据映射truncate存在xss漏洞 #21396

Description

@xiahao90

描述问题:

数据映射truncate+tpl存在xss漏洞

截图或视频:

Image

如何复现(请务必完整填写下面内容):

  1. 你是如何使用 amis 的?
    sdk

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
    sdk6.0.0,官网demo也存在问题,发现时间官网demo事6.13.0

  3. 粘贴有问题的完整 amis schema 代码:

{
  "data": {
    "text": "<b>加粗了</b>World!"
  },
  "type": "page",
  "body": {
    "type": "tpl",
    "tpl": "${text|truncate:15}Hello ${text}"
  }
}
  1. 操作步骤
    官网测试

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions