MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _base_alert

Function _base_alert

tests/test_zap_sql_false_positives.py:12–30  ·  view source on GitHub ↗
(**overrides)

Source from the content-addressed store, hash-verified

10
11
12def _base_alert(**overrides):
13 alert = {
14 'alertRef': '40018-1',
15 'risk': '2',
16 'confidence': '2',
17 'name': 'SQL Injection',
18 'description': 'Potential SQL injection detected',
19 'url': 'https://example.test/api/items?id=1',
20 'method': 'GET',
21 'param': 'id',
22 'attack': "' OR '1'='1",
23 'evidence': 'SQL syntax near ...',
24 'reference': '',
25 'pluginId': '40018',
26 'cweid': '89',
27 'wascid': '19',
28 }
29 alert.update(overrides)
30 return alert
31
32
33def test_parse_zap_alert_filters_explicit_false_positive_confidence():

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected