Skip to content

Commit 1c3b67b

Browse files
authored
Merge pull request #94 from lostsnow/feature/sep-vul-test-project-names
separate project names in vul tests
2 parents c6e5ea2 + 0af0e24 commit 1c3b67b

5 files changed

Lines changed: 22 additions & 14 deletions

File tree

.github/workflows/vul-test.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,12 @@ jobs:
3838
shell: python
3939
run: |
4040
import json
41+
example_filename = '${{ github.workspace }}/DockerVulspace/DongTai-agent-python/dongtai_agent_python/config-example.json'
4142
filename = '${{ github.workspace }}/DockerVulspace/DongTai-agent-python/dongtai_agent_python/config.json'
42-
with open(filename) as f:
43+
with open(example_filename) as f:
4344
data = json.load(f)
44-
data['debug'] = True
4545
data['iast']['server']['token'] = '0f0025dff8311467f6da5b5109a469f1831aa782'
46-
data['iast']['server']['url'] = 'http://iast-test.huoxian.cn/openapi'
47-
data['project']['name'] = 'Python-DockerVulspace'
46+
data['iast']['server']['url'] = 'https://iast-test.huoxian.cn/openapi'
4847
with open(filename, 'w') as f:
4948
json.dump(data, f)
5049

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ __pycache__/
77
/dist
88
/dongtai_agent_python.egg-info
99
*.log
10+
config.json

CHANGELOG.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22

33
## Unreleased
44

5+
## [1.2.0](https://github.com/HXSecurity/DongTai-agent-python/releases/tag/v1.2.0) - 2021-12-31
6+
57
* FEATURES
6-
* Add `pymongo` hook rules for NoSQL injection detection #84
7-
* Add `python-ldap` and `ldap3` hook rules for LDAP injection detection #86, #88
8-
* Use the environment variable `DEBUG=1` to enable debug mode #92
8+
* Add `pymongo` hook rules for NoSQL injection detection [#84](https://github.com/HXSecurity/DongTai-agent-python/pull/84)
9+
* Add `python-ldap` and `ldap3` hook rules for LDAP injection detection [#86](https://github.com/HXSecurity/DongTai-agent-python/pull/86), [#88](https://github.com/HXSecurity/DongTai-agent-python/pull/88)
10+
* Use the environment variable `DEBUG=1` to enable debug mode [#92](https://github.com/HXSecurity/DongTai-agent-python/pull/92)
911
* BUGFIXES
10-
* Fix request and response header formats #87
11-
* Bypass the hook in the filter rules #93
12+
* Fix request and response header formats [#87](https://github.com/HXSecurity/DongTai-agent-python/pull/87)
13+
* Bypass the hook in the filter rules [#93](https://github.com/HXSecurity/DongTai-agent-python/pull/93)
14+
* TESTING
15+
* When testing for vulnerabilities, separate Django and Flask project names [#94](https://github.com/HXSecurity/DongTai-agent-python/pull/94), [DockerVulspace#8](https://github.com/jinghao1/DockerVulspace/pull/8)
1216

1317
## [1.1.4](https://github.com/HXSecurity/DongTai-agent-python/releases/tag/v1.1.4) - 2021-12-18
1418

CHANGELOG_CN.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22

33
## 尚未发布
44

5+
## [1.2.0](https://github.com/HXSecurity/DongTai-agent-python/releases/tag/v1.2.0) - 2021-12-31
6+
57
* 功能
6-
* 增加 `pymongo` 策略规则以检测 NoSQL 注入漏洞 #84
7-
* 增加 `python-ldap` and `ldap3` 策略规则以检测 LDAP 注入漏洞 #86, #88
8-
* 使用环境变量 `DEBUG=1` 开启 DEBUG 模式 #92
8+
* 增加 `pymongo` 策略规则以检测 NoSQL 注入漏洞 [#84](https://github.com/HXSecurity/DongTai-agent-python/pull/84)
9+
* 增加 `python-ldap` and `ldap3` 策略规则以检测 LDAP 注入漏洞 [#86](https://github.com/HXSecurity/DongTai-agent-python/pull/86), [#88](https://github.com/HXSecurity/DongTai-agent-python/pull/88)
10+
* 使用环境变量 `DEBUG=1` 开启 DEBUG 模式 [#92](https://github.com/HXSecurity/DongTai-agent-python/pull/92)
911
* 修复
10-
* 修复请求头和响应头格式 #87
11-
* 绕过过滤规则中的 hook #93
12+
* 修复请求头和响应头格式 [#87](https://github.com/HXSecurity/DongTai-agent-python/pull/87)
13+
* 绕过过滤规则中的 hook [#93](https://github.com/HXSecurity/DongTai-agent-python/pull/93)
14+
* 测试
15+
* 靶场测试时, 将 Django 和 Flask 的项目名称分开 [#94](https://github.com/HXSecurity/DongTai-agent-python/pull/94), [DockerVulspace#8](https://github.com/jinghao1/DockerVulspace/pull/8)
1216

1317
## [1.1.4](https://github.com/HXSecurity/DongTai-agent-python/releases/tag/v1.1.4) - 2021-12-18
1418

0 commit comments

Comments
 (0)