Skip to content

Commit

Permalink
Merge pull request #1613 from Bidaya0/feat/update-1.13.0-strategy
Browse files Browse the repository at this point in the history
feat: update 1.13.0 strategy.
  • Loading branch information
Bidaya0 authored Jul 13, 2023
2 parents 4b8572b + 220091b commit 61f6698
Show file tree
Hide file tree
Showing 8 changed files with 1,337 additions and 2,670 deletions.
2 changes: 1 addition & 1 deletion dongtai_engine/common/queryset.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def load_sink_strategy(user=None, language=None, scan_id=0) -> List[Dict]:
language_id = 0
if language and language in LANGUAGE_MAP:
language_id = LANGUAGE_MAP[language]
q = ~Q(state='delete')
q = Q(state='enable')
scan_template = IastStrategyUser.objects.filter(pk=scan_id).first()
if scan_template:
strategy_id = [int(i) for i in scan_template.content.split(',')]
Expand Down
2 changes: 1 addition & 1 deletion static/data/go_full_policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"value": "template.(*Template).ExecuteTemplate()"
}
],
"enable": 1,
"enable": 0,
"type": 4,
"value": "reflected-xss"
},
Expand Down
20 changes: 0 additions & 20 deletions static/data/go_policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,6 @@
"type": 4,
"value": "path-traversal"
},
{
"details": [
{
"command": "",
"ignore_blacklist": false,
"ignore_internal": false,
"inherit": "false",
"source": "P3",
"stack_blacklist": [],
"tags": [],
"target": "",
"track": "true",
"untags": [],
"value": "template.(*Template).ExecuteTemplate()"
}
],
"enable": 1,
"type": 4,
"value": "reflected-xss"
},
{
"details": [
{
Expand Down
Loading

0 comments on commit 61f6698

Please sign in to comment.