Skip to content

Commit

Permalink
More Nuclei translations and minor bugfixes (#1168)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet authored Aug 3, 2024
1 parent 2929e60 commit 4a7a597
Show file tree
Hide file tree
Showing 4 changed files with 263 additions and 3 deletions.
3 changes: 3 additions & 0 deletions artemis/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ class Nuclei:
# Too small impact to report
"http/exposed-panels/webeditors-check-detect.yaml",
# Online stores, CRMs and ticketing systems - it's a standard practice to have them exposed in a small organization
"http/exposed-panels/bitrix-panel.yaml",
"http/exposed-panels/dynamicweb-panel.yaml",
"http/exposed-panels/jira-detect.yaml",
"http/exposed-panels/kanboard-login.yaml",
Expand Down Expand Up @@ -533,6 +534,8 @@ class Nuclei:
"custom:xss-inside-tag-top-params",
"http/miscellaneous/defaced-website-detect.yaml",
"http/misconfiguration/google/insecure-firebase-database.yaml",
# This catches other Open Redirects as well
"http/cves/2018/CVE-2018-11784.yaml",
# Until https://github.com/projectdiscovery/nuclei-templates/issues/8657
# gets fixed, these templates return a FP on phpinfo(). Let's not spam
# our recipients with FPs.
Expand Down
3 changes: 2 additions & 1 deletion artemis/reporting/export/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import copy
import dataclasses
import datetime
import json
Expand Down Expand Up @@ -116,7 +117,7 @@ def _build_messages_and_print_path(
message_data = {
"contains_type": {report.report_type},
"reports": [report],
"custom_template_arguments": message.custom_template_arguments,
"custom_template_arguments": copy.deepcopy(message.custom_template_arguments),
}
message_data["custom_template_arguments"]["skip_html_and_body_tags"] = True # type: ignore
message_data["custom_template_arguments"]["skip_header_and_footer_text"] = True # type: ignore
Expand Down
2 changes: 1 addition & 1 deletion artemis/reporting/modules/nuclei/reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class NucleiReporter(Reporter):
GROUPS = json.load(f)

@staticmethod
def get_alerts(all_reports: List[Report], false_positive_threshold: int = 3) -> List[str]:
def get_alerts(all_reports: List[Report], false_positive_threshold: int = 2) -> List[str]:
result = []

reports_by_target_counter: Counter[str] = collections.Counter()
Expand Down
Loading

0 comments on commit 4a7a597

Please sign in to comment.