KnowAgent is vulnerable to Information Disclosure, and it results to attackers can read arbitrary files.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reading NormalLogCollectTaskController.java and inspect the file-content route described in the issue. Reproduce the reported request only in a safe local environment, then trace how hostName and path are handled. Done means the route no longer permits arbitrary file disclosure, with a regression test covering the reported case.
Written by the indexing model from the issue text.
Description
- When I study the source code of KnowAgent, the file-content route in NormalLogCollectTaskController.java gets my attention. It seems to be a file read function.
2)Then I access the route via http request. It is a vulnerability which leads to an arbitrary file reading.
The request URL is http://116.85.4.122:9010/api/v1/normal/collect-task/file-content?hostName=127.0.0.1&path=/etc/passwd
- Dominant language
- Java
- Stars
- 279
- Forks
- 76
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from didi/KnowAgent
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
-
KNOW AGENT 被进行商标注册 Open
Difficulty 1/5 Under an hour Newbie friendliness 10/100
-
Difficulty 4/5 3-5 days Newbie friendliness 15/100
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
1.0.0-alpha2 Type/Improvement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
wso2/dpdp-accelerator#272 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
area/frontend
Difficulty 2/5 1-3 hours Newbie friendliness 65/100