Skip to content

Commit

Permalink
Update bandit baseline:
Browse files Browse the repository at this point in the history
  • Loading branch information
fourjr committed Nov 20, 2021
1 parent 80dafca commit a1aacbf
Showing 1 changed file with 24 additions and 36 deletions.
60 changes: 24 additions & 36 deletions .bandit_baseline.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"errors": [],
"generated_at": "2020-11-26T11:00:36Z",
"generated_at": "2021-11-20T17:06:28Z",
"metrics": {
"./bot.py": {
"CONFIDENCE.HIGH": 1.0,
Expand All @@ -11,7 +11,7 @@
"SEVERITY.LOW": 1.0,
"SEVERITY.MEDIUM": 0.0,
"SEVERITY.UNDEFINED": 0.0,
"loc": 1321,
"loc": 1406,
"nosec": 0
},
"./cogs/modmail.py": {
Expand All @@ -23,7 +23,7 @@
"SEVERITY.LOW": 0.0,
"SEVERITY.MEDIUM": 0.0,
"SEVERITY.UNDEFINED": 0.0,
"loc": 1273,
"loc": 1678,
"nosec": 0
},
"./cogs/plugins.py": {
Expand All @@ -35,7 +35,7 @@
"SEVERITY.LOW": 1.0,
"SEVERITY.MEDIUM": 0.0,
"SEVERITY.UNDEFINED": 0.0,
"loc": 578,
"loc": 597,
"nosec": 0
},
"./cogs/utility.py": {
Expand All @@ -47,7 +47,7 @@
"SEVERITY.LOW": 1.0,
"SEVERITY.MEDIUM": 1.0,
"SEVERITY.UNDEFINED": 0.0,
"loc": 1755,
"loc": 1768,
"nosec": 0
},
"./core/_color_data.py": {
Expand All @@ -71,7 +71,7 @@
"SEVERITY.LOW": 1.0,
"SEVERITY.MEDIUM": 0.0,
"SEVERITY.UNDEFINED": 0.0,
"loc": 155,
"loc": 159,
"nosec": 0
},
"./core/checks.py": {
Expand All @@ -83,7 +83,7 @@
"SEVERITY.LOW": 0.0,
"SEVERITY.MEDIUM": 0.0,
"SEVERITY.UNDEFINED": 0.0,
"loc": 90,
"loc": 105,
"nosec": 0
},
"./core/clients.py": {
Expand All @@ -95,7 +95,7 @@
"SEVERITY.LOW": 1.0,
"SEVERITY.MEDIUM": 0.0,
"SEVERITY.UNDEFINED": 0.0,
"loc": 587,
"loc": 598,
"nosec": 0
},
"./core/config.py": {
Expand All @@ -107,7 +107,7 @@
"SEVERITY.LOW": 0.0,
"SEVERITY.MEDIUM": 0.0,
"SEVERITY.UNDEFINED": 0.0,
"loc": 352,
"loc": 375,
"nosec": 0
},
"./core/decorators.py": {
Expand All @@ -131,7 +131,7 @@
"SEVERITY.LOW": 0.0,
"SEVERITY.MEDIUM": 0.0,
"SEVERITY.UNDEFINED": 0.0,
"loc": 202,
"loc": 204,
"nosec": 0
},
"./core/paginator.py": {
Expand All @@ -155,7 +155,7 @@
"SEVERITY.LOW": 0.0,
"SEVERITY.MEDIUM": 0.0,
"SEVERITY.UNDEFINED": 0.0,
"loc": 996,
"loc": 1097,
"nosec": 0
},
"./core/time.py": {
Expand All @@ -167,7 +167,7 @@
"SEVERITY.LOW": 0.0,
"SEVERITY.MEDIUM": 0.0,
"SEVERITY.UNDEFINED": 0.0,
"loc": 158,
"loc": 156,
"nosec": 0
},
"./core/utils.py": {
Expand All @@ -179,19 +179,7 @@
"SEVERITY.LOW": 0.0,
"SEVERITY.MEDIUM": 0.0,
"SEVERITY.UNDEFINED": 0.0,
"loc": 282,
"nosec": 0
},
"./plugins/kyb3r/modmail-plugins/profanity-filter-master/profanity-filter.py": {
"CONFIDENCE.HIGH": 0.0,
"CONFIDENCE.LOW": 0.0,
"CONFIDENCE.MEDIUM": 0.0,
"CONFIDENCE.UNDEFINED": 0.0,
"SEVERITY.HIGH": 0.0,
"SEVERITY.LOW": 0.0,
"SEVERITY.MEDIUM": 0.0,
"SEVERITY.UNDEFINED": 0.0,
"loc": 81,
"loc": 351,
"nosec": 0
},
"_totals": {
Expand All @@ -203,20 +191,20 @@
"SEVERITY.LOW": 5.0,
"SEVERITY.MEDIUM": 1.0,
"SEVERITY.UNDEFINED": 0.0,
"loc": 9214,
"loc": 9878,
"nosec": 0
}
},
"results": [
{
"code": "11 from datetime import datetime\n12 from subprocess import PIPE\n13 from types import SimpleNamespace\n",
"code": "13 from datetime import datetime\n14 from subprocess import PIPE\n15 from types import SimpleNamespace\n",
"filename": "./bot.py",
"issue_confidence": "HIGH",
"issue_severity": "LOW",
"issue_text": "Consider possible security implications associated with PIPE module.",
"line_number": 12,
"line_number": 14,
"line_range": [
12
14
],
"more_info": "https://bandit.readthedocs.io/en/latest/blacklists/blacklist_imports.html#b404-import-subprocess",
"test_id": "B404",
Expand All @@ -238,28 +226,28 @@
"test_name": "blacklist"
},
{
"code": "13 from json import JSONDecodeError, loads\n14 from subprocess import PIPE\n15 from textwrap import indent\n",
"code": "12 from json import JSONDecodeError, loads\n13 from subprocess import PIPE\n14 from textwrap import indent\n",
"filename": "./cogs/utility.py",
"issue_confidence": "HIGH",
"issue_severity": "LOW",
"issue_text": "Consider possible security implications associated with PIPE module.",
"line_number": 14,
"line_number": 13,
"line_range": [
14
13
],
"more_info": "https://bandit.readthedocs.io/en/latest/blacklists/blacklist_imports.html#b404-import-subprocess",
"test_id": "B404",
"test_name": "blacklist"
},
{
"code": "2039 try:\n2040 exec(to_compile, env) # pylint: disable=exec-used\n2041 except Exception as exc:\n",
"code": "2061 try:\n2062 exec(to_compile, env) # pylint: disable=exec-used\n2063 except Exception as exc:\n",
"filename": "./cogs/utility.py",
"issue_confidence": "HIGH",
"issue_severity": "MEDIUM",
"issue_text": "Use of exec detected.",
"line_number": 2040,
"line_number": 2062,
"line_range": [
2040
2062
],
"more_info": "https://bandit.readthedocs.io/en/latest/plugins/b102_exec_used.html",
"test_id": "B102",
Expand All @@ -280,7 +268,7 @@
"test_name": "blacklist"
},
{
"code": "67 \n68 def __init__(self, bot, access_token: str = \"\", username: str = \"\", **kwargs):\n69 self.bot = bot\n70 self.session = bot.session\n71 self.headers: dict = None\n72 self.access_token = access_token\n73 self.username = username\n74 self.avatar_url: str = kwargs.pop(\"avatar_url\", \"\")\n75 self.url: str = kwargs.pop(\"url\", \"\")\n76 if self.access_token:\n77 self.headers = {\"Authorization\": \"token \" + str(access_token)}\n78 \n79 @property\n80 def BRANCH(self):\n",
"code": "67 \n68 def __init__(self, bot, access_token: str = \"\", username: str = \"\", **kwargs):\n69 self.bot = bot\n70 self.session = bot.session\n71 self.headers: Optional[dict] = None\n72 self.access_token = access_token\n73 self.username = username\n74 self.avatar_url: str = kwargs.pop(\"avatar_url\", \"\")\n75 self.url: str = kwargs.pop(\"url\", \"\")\n76 if self.access_token:\n77 self.headers = {\"Authorization\": \"token \" + str(access_token)}\n78 \n79 @property\n80 def BRANCH(self):\n",
"filename": "./core/clients.py",
"issue_confidence": "MEDIUM",
"issue_severity": "LOW",
Expand Down

0 comments on commit a1aacbf

Please sign in to comment.