diff --git a/libsast/__init__.py b/libsast/__init__.py index 3ebe6d3..660d5c5 100644 --- a/libsast/__init__.py +++ b/libsast/__init__.py @@ -8,7 +8,7 @@ __title__ = 'libsast' __authors__ = 'Ajin Abraham' __copyright__ = 'Copyright 2020 Ajin Abraham, OpenSecurity' -__version__ = '1.4.4' +__version__ = '1.4.5' __version_info__ = tuple(int(i) for i in __version__.split('.')) __all__ = [ 'Scanner', diff --git a/libsast/core_matcher/helpers.py b/libsast/core_matcher/helpers.py index d90a106..77d9a61 100644 --- a/libsast/core_matcher/helpers.py +++ b/libsast/core_matcher/helpers.py @@ -72,6 +72,9 @@ def comment_replacer(matches, data): if ':' + stripm in data: # possible URLs http://, do not strip continue + if 'ignore:' in data: + # preserve ignore tags + continue to_replace.add(match.group()) for itm in to_replace: dummy = repl_regex.sub(' ', itm) diff --git a/libsast/standards/cwe.yaml b/libsast/standards/cwe.yaml index e1eff46..63467d9 100644 --- a/libsast/standards/cwe.yaml +++ b/libsast/standards/cwe.yaml @@ -437,7 +437,7 @@ cwe: cwe-749: "CWE-749 Exposed Dangerous Method or Function" cwe-754: "CWE-754 Improper Check for Unusual or Exceptional Conditions" cwe-756: "CWE-756 Missing Custom Error Page" - cwe-757: "CWE-757 Selection of Less-Secure Algorithm During Negotiat" + cwe-757: "CWE-757 Selection of Less-Secure Algorithm During Negotiation" cwe-759: "CWE-759 Use of a One-Way Hash without a Salt" cwe-76: "CWE-76 Improper Neutralization of Equivalent Special Elements" cwe-763: "CWE-763 Release of Invalid Pointer or Reference" diff --git a/setup.py b/setup.py index 4081759..ab84360 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ def get_requires(): requires = [ 'requests>=2.22.0', 'pyyaml>=5.3', - 'semgrep==0.50.1;platform_system!="Windows"', + 'semgrep==0.53.0;platform_system!="Windows"', ] return requires