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

Commit 57847c2

Browse files
authored
Merge pull request #46 from HXSecurity/develop
Develop
2 parents 381fe49 + ba5885f commit 57847c2

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

signals/handlers/vul_handler.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,24 @@ def save_vul(vul_meta, vul_level, vul_name, vul_stack, top_stack, bottom_stack,
238238
if vul:
239239
vul.req_header = vul_meta.req_header
240240
vul.req_params = vul_meta.req_params
241+
vul.req_data = vul_meta.req_data
242+
vul.res_header = vul_meta.res_header
243+
vul.res_body = vul_meta.res_body
244+
vul.taint_value = taint_value
245+
vul.taint_position = taint_position
246+
vul.context_path = vul_meta.context_path
247+
vul.client_ip = vul_meta.clent_ip
248+
vul.top_stack = top_stack
249+
vul.bottom_stack = bottom_stack
241250
vul.counts = vul.counts + 1
242251
vul.latest_time = timestamp
243252
vul.method_pool_id = vul_meta.id
244253
vul.full_stack = json.dumps(vul_stack, ensure_ascii=False)
245254
vul.status = '待验证'
246-
vul.save(update_fields=['req_header', 'req_params', 'full_stack', 'counts', 'latest_time', 'status'])
255+
vul.save(update_fields=[
256+
'req_header', 'req_params', 'req_data', 'res_header', 'res_body', 'taint_value', 'taint_position',
257+
'context_path', 'client_ip', 'top_stack', 'bottom_stack', 'full_stack', 'counts', 'latest_time', 'status'
258+
])
247259
else:
248260
vul = IastVulnerabilityModel.objects.create(
249261
type=vul_name,

test/core/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_search_vul_from_replay_method_pool(self):
1717
search_vul_from_replay_method_pool(method_id)
1818

1919
def test_search_vul_from_method_pool(self):
20-
method_pool_id = 2311521
20+
method_pool_id = 2312586
2121
from core.tasks import search_vul_from_method_pool
2222
search_vul_from_method_pool(method_pool_id)
2323

0 commit comments

Comments
 (0)