| 1 |
len(results) == 2 |
| 2 |
"192.168.1.3" in results[0].Overflow.GetSources() |
| 3 |
results[0].Overflow.Sources["192.168.1.3"].IP == "192.168.1.3" |
| 4 |
results[0].Overflow.Sources["192.168.1.3"].Range == "" |
| 5 |
results[0].Overflow.Sources["192.168.1.3"].GetScope() == "Ip" |
| 6 |
results[0].Overflow.Sources["192.168.1.3"].GetValue() == "192.168.1.3" |
| 7 |
results[0].Overflow.Alert.Events[0].GetMeta("datasource_path") == "grafana_cve-2021-43798.log" |
| 8 |
results[0].Overflow.Alert.Events[0].GetMeta("datasource_type") == "file" |
| 9 |
results[0].Overflow.Alert.Events[0].GetMeta("http_path") == "/public/plugins/grafana/%2E%2E/%2E%2E/%2E%2E/%2E%2E/%2E%2E/%2E%2E/%2E%2E/%2E%2E/%2E%2E/%2E%2E/%2E%2E/%2E%2E/%2E%2E/%2E%2E/%2E%2E/%2E%2E/%2E%2E/%2E%2E/etc/passwd" |
| 10 |
results[0].Overflow.Alert.Events[0].GetMeta("http_status") == "400" |
| 11 |
results[0].Overflow.Alert.Events[0].GetMeta("http_user_agent") == "-" |
| 12 |
results[0].Overflow.Alert.Events[0].GetMeta("http_verb") == "GET" |
| 13 |
results[0].Overflow.Alert.Events[0].GetMeta("log_type") == "http_access-log" |
| 14 |
results[0].Overflow.Alert.Events[0].GetMeta("service") == "http" |
| 15 |
results[0].Overflow.Alert.Events[0].GetMeta("source_ip") == "192.168.1.3" |
| 16 |
results[0].Overflow.Alert.GetScenario() == "crowdsecurity/grafana-cve-2021-43798" |
| 17 |
results[0].Overflow.Alert.Remediation == true |
| 18 |
results[0].Overflow.Alert.GetEventsCount() == 1 |
| 19 |
"192.168.1.2" in results[1].Overflow.GetSources() |
| 20 |
results[1].Overflow.Sources["192.168.1.2"].IP == "192.168.1.2" |
| 21 |
results[1].Overflow.Sources["192.168.1.2"].Range == "" |
| 22 |
results[1].Overflow.Sources["192.168.1.2"].GetScope() == "Ip" |
| 23 |
results[1].Overflow.Sources["192.168.1.2"].GetValue() == "192.168.1.2" |
| 24 |
results[1].Overflow.Alert.Events[0].GetMeta("datasource_path") == "grafana_cve-2021-43798.log" |
| 25 |
results[1].Overflow.Alert.Events[0].GetMeta("datasource_type") == "file" |
| 26 |
results[1].Overflow.Alert.Events[0].GetMeta("http_path") == "/public/plugins/grafana/../../../../../../../../../../../../../../../../../../etc/passwd" |
| 27 |
results[1].Overflow.Alert.Events[0].GetMeta("http_status") == "400" |
| 28 |
results[1].Overflow.Alert.Events[0].GetMeta("http_user_agent") == "-" |
| 29 |
results[1].Overflow.Alert.Events[0].GetMeta("http_verb") == "GET" |
| 30 |
results[1].Overflow.Alert.Events[0].GetMeta("log_type") == "http_access-log" |
| 31 |
results[1].Overflow.Alert.Events[0].GetMeta("service") == "http" |
| 32 |
results[1].Overflow.Alert.Events[0].GetMeta("source_ip") == "192.168.1.2" |
| 33 |
results[1].Overflow.Alert.GetScenario() == "crowdsecurity/grafana-cve-2021-43798" |
| 34 |
results[1].Overflow.Alert.Remediation == true |
| 35 |
results[1].Overflow.Alert.GetEventsCount() == 1 |