Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

同一url三个sink点却只会检出一个漏洞 #103

Open
3 tasks done
Maskhe opened this issue Nov 23, 2021 · 2 comments
Open
3 tasks done

同一url三个sink点却只会检出一个漏洞 #103

Maskhe opened this issue Nov 23, 2021 · 2 comments
Assignees

Comments

@Maskhe
Copy link

Maskhe commented Nov 23, 2021

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.
  • I am not looking for support or already pursued the available support channels without success.

Version

1.1.1

Installation Type

Official Docker Compose

Service Name

DongTai-agent-java

Describe the details of the bug and the steps to reproduce it

三个xss sink点:
image

检出漏洞只有一个:

image

Additional Information

No response

Logs

No response

@Maskhe
Copy link
Author

Maskhe commented Dec 7, 2021

备忘:

排查后发现是此处引入的该问题:
image

通过strategy_id来判断当前漏洞是否已经存在,而不是使用hook_strategy_id来判断,这就导致同一类型的漏洞,比如上述的反射型xss,一次请求触发了多个xss sink点,由于都是xss,他们的strategy_id相同,故一次请求中的多个xss sink点只会报出一次,如果一次请求中既有xss又有sqli,则可以两种类型的漏洞都报出。此处更改可能需要修改数据表iast_vulnerability的结构

@exexute
Copy link
Contributor

exexute commented Dec 8, 2021

Please push to fix this issue. thanks.

@exexute exexute transferred this issue from HXSecurity/DongTai Dec 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants