Skip to content

Conversation

@chmccreery
Copy link
Owner

No description provided.

@dev-semgrep-app
Copy link

Semgrep found 5 avoid-bind-to-all-interfaces findings:

Running socket.bind to 0.0.0.0, ::, or empty string could unexpectedly expose the server publicly as it binds to all available interfaces. Consider instead getting correct address from an environment variable or configuration file.

⚪️ This finding does not block your pull request.
🙈 From python.lang.security.audit.network.bind.avoid-bind-to-all-interfaces.

@semgrep-app-local-dev
Copy link

Semgrep found 1 useless-eqeq finding:

  • cron-test.py: L5

This expression is always True: 7 == 7 or 7 != 7. If testing for floating point NaN, use math.isnan(7), or cmath.isnan(7) if the number is complex.

⚪️ This finding does not block your pull request.
🙈 From python.lang.correctness.useless-eqeq.useless-eqeq.

Semgrep found 1 use-defused-xml finding:

  • cron-test.py: L1

The Python documentation recommends using defusedxml instead of xml because the native Python xml library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and "XML bombs" can cause denial of service.

⚪️ This finding does not block your pull request.
🙈 From python.lang.security.use-defused-xml.use-defused-xml.

@semgrep-app-local-dev
Copy link

Semgrep found 1 useless-eqeq finding:

  • cron-test.py: L5

This expression is always True: 7 == 7 or 7 != 7. If testing for floating point NaN, use math.isnan(7), or cmath.isnan(7) if the number is complex.

⚪️ This finding does not block your pull request.
🙈 From python.lang.correctness.useless-eqeq.useless-eqeq.

Semgrep found 1 use-defused-xml finding:

  • cron-test.py: L1

The Python documentation recommends using defusedxml instead of xml because the native Python xml library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and "XML bombs" can cause denial of service.

⚪️ This finding does not block your pull request.
🙈 From python.lang.security.use-defused-xml.use-defused-xml.

Repository owner deleted a comment from dev-semgrep-app bot May 2, 2022
pr-lines-test.py Outdated
@@ -1,8 +1,5 @@
import xml

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Python documentation recommends using defusedxml instead of xml because the native Python xml library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and "XML bombs" can cause denial of service. (Line 1)

Suggested change
import xml
import defusedxml
⚪️ This finding does not block your pull request.
🙈 From python.lang.security.use-defused-xml.use-defused-xml.

pr-lines-test.py Outdated
@@ -1,8 +1,5 @@
import xml

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Python documentation recommends using defusedxml instead of xml because the native Python xml library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and "XML bombs" can cause denial of service. (Line 1)

Suggested change
import xml
import defusedxml
⚪️ This finding does not block your pull request.
🙈 From python.lang.security.use-defused-xml.use-defused-xml.

pr-lines-test.py Outdated
@@ -1,8 +1,5 @@
import xml

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Python documentation recommends using defusedxml instead of xml because the native Python xml library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and "XML bombs" can cause denial of service. (Line 1)

Suggested change
import xml
import defusedxml
⚪️ This finding does not block your pull request.
🙈 From python.lang.security.use-defused-xml.use-defused-xml.

pr-lines-test.py Outdated
@@ -1,8 +1,5 @@
import xml

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Python documentation recommends using defusedxml instead of xml because the native Python xml library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and "XML bombs" can cause denial of service. (Line 1)

Suggested change
import xml
import defusedxml
⚪️ This finding does not block your pull request.
🙈 From python.lang.security.use-defused-xml.use-defused-xml.

pr-lines-test.py Outdated
@@ -1,8 +1,5 @@
import xml

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Python documentation recommends using defusedxml instead of xml because the native Python xml library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and "XML bombs" can cause denial of service. (Line 1)

Suggested change
import xml
import defusedxml
⚪️ This finding does not block your pull request.
🙈 From python.lang.security.use-defused-xml.use-defused-xml.

pr-lines-test.py Outdated
@@ -1,8 +1,5 @@
import xml

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Python documentation recommends using defusedxml instead of xml because the native Python xml library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and "XML bombs" can cause denial of service. (Line 1)

Suggested change
import xml
import defusedxml
⚪️ This finding does not block your pull request.
🙈 From python.lang.security.use-defused-xml.use-defused-xml.

pr-lines-test.py Outdated
@@ -1,8 +1,5 @@
import xml

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Python documentation recommends using defusedxml instead of xml because the native Python xml library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and "XML bombs" can cause denial of service. (Line 1)

Suggested change
import xml
import defusedxml
⚪️ This finding does not block your pull request.
🙈 From python.lang.security.use-defused-xml.use-defused-xml.

pr-lines-test.py Outdated
@@ -1,8 +1,5 @@
import xml

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Python documentation recommends using defusedxml instead of xml because the native Python xml library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and "XML bombs" can cause denial of service. (Line 1)

Suggested change
import xml
import defusedxml
⚪️ This finding does not block your pull request.
🙈 From python.lang.security.use-defused-xml.use-defused-xml.

pr-lines-test.py Outdated
@@ -1,8 +1,5 @@
import xml

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Python documentation recommends using defusedxml instead of xml because the native Python xml library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and "XML bombs" can cause denial of service. (Line 1)

Suggested change
import xml
import defusedxml
⚪️ This finding does not block your pull request.
🙈 From python.lang.security.use-defused-xml.use-defused-xml.

pr-lines-test.py Outdated
@@ -1,8 +1,5 @@
import xml

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Python documentation recommends using defusedxml instead of xml because the native Python xml library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and "XML bombs" can cause denial of service. (Line 1)

Suggested change
import xml
import defusedxml
⚪️ This finding does not block your pull request.
🙈 From python.lang.security.use-defused-xml.use-defused-xml.

pr-lines-test.py Outdated
@@ -1,8 +1,5 @@
import xml

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Python documentation recommends using defusedxml instead of xml because the native Python xml library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and "XML bombs" can cause denial of service. (Line 1)

Suggested change
import xml
import defusedxml
⚪️ This finding does not block your pull request.
🙈 From python.lang.security.use-defused-xml.use-defused-xml.

pr-lines-test.py Outdated
@@ -1,8 +1,5 @@
import xml

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Python documentation recommends using defusedxml instead of xml because the native Python xml library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and "XML bombs" can cause denial of service. (Line 1)

Suggested change
import xml
import defusedxml
⚪️ This finding does not block your pull request.
🙈 From python.lang.security.use-defused-xml.use-defused-xml.

pr-lines-test.py Outdated
@@ -1,8 +1,5 @@
import xml

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Python documentation recommends using defusedxml instead of xml because the native Python xml library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and "XML bombs" can cause denial of service. (Line 1)

Suggested change
import xml
import defusedxml
⚪️ This finding does not block your pull request.
🙈 From python.lang.security.use-defused-xml.use-defused-xml.

pr-lines-test.py Outdated
@@ -1,8 +1,5 @@
import xml

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Python documentation recommends using defusedxml instead of xml because the native Python xml library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and "XML bombs" can cause denial of service. (Line 1)

Suggested change
import xml
import defusedxml
⚪️ This finding does not block your pull request.
🙈 From python.lang.security.use-defused-xml.use-defused-xml.

pr-lines-test.py Outdated
@@ -1,8 +1,5 @@
import xml
Copy link

@semgrep-app-local-dev semgrep-app-local-dev bot May 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Python documentation recommends using defusedxml instead of xml because the native Python xml library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and "XML bombs" can cause denial of service. (Line 1)

Fixed in commit 3b1709949d372c16a6e8cf5c799b60da 🎉

pr-lines-test.py Outdated
@@ -1,8 +1,5 @@
import xml
Copy link

@semgrep-app-local-dev semgrep-app-local-dev bot May 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in latest scan

pr-lines-test.py Outdated
import pdb;
pdb.set_trace();
print("hello world")
7 == 7
Copy link

@semgrep-app-local-dev semgrep-app-local-dev bot May 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This expression is always True: 7 == 7 or 7 != 7. If testing for floating point NaN, use math.isnan(7), or cmath.isnan(7) if the number is complex. (Line 3)

🧹 Fixed in commit c6a324e 🧹

pr-lines-test.py Outdated
@@ -1,8 +1,5 @@
import xml
Copy link

@semgrep-app-local-dev semgrep-app-local-dev bot May 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Python documentation recommends using defusedxml instead of xml because the native Python xml library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and "XML bombs" can cause denial of service. (Line 1)

🧹 Fixed in commit b59c8a9 🧹

pr-lines-test.py Outdated
@@ -1,8 +1,5 @@
import xml
Copy link

@semgrep-app-local-dev semgrep-app-local-dev bot May 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Python documentation recommends using defusedxml instead of xml because the native Python xml library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and "XML bombs" can cause denial of service. (Line 1)

🍰 Fixed in commit 43f040d 🍰

- main
paths:
- .github/workflows/semgrep.yml
schedule:
Copy link
Owner Author

@chmccreery chmccreery Oct 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants