Affected software | Semgrep rule | Description |
Poetry | contrib.dlint.redos.dlint-catastrophic-redos | This ReDoS occurs due to r"(?:(?P<user>.+)@)*" in both expressions. This is due to nested quantifiers with overlapping character space. |
Colorama | contrib.dlint.redos.dlint-catastrophic-redos | The ReDoS occurs due to '\001?\033\\]((?:.\|;)*?)(\x07)\002?' . In particular, this portion of the expression: (?:.\|;)* . This is due to mutually inclusive alternation within a quantifier. Since . and ; have character overlap. |
Bottle | contrib.dlint.redos.dlint-catastrophic-redos | A special subject string can be crafted to cause it to catastrophic backtracking. The culprit here is this portion of the expression: ((?:\\\\.\|[^\\\\>]+)+)? . Due to mutually inclusive alternation, a long string of dots (. ) will backtrack this expression. |
Splunk SDK Python | contrib.dlint.redos.dlint-catastrophic-redos | The finding in internals.py at line 235 occurs due to (?:\\.\|""\|[^"])+ . This is due to mutually inclusive alternation within a quantifier. Since \\. and [^"] have character overlap. |
requests-gssapi | contrib.dlint.redos.dlint-catastrophic-redos | Denial-of-service (DoS) bug in requests_kerberos.kerberos_._negotiate_value . In particular, the (?:.*,)* portion of the regular expression causes catastrophic backtracking. Since "." and "," overlap and there are nested quantifiers we can cause catastrophic backtracking by repeating a comma. This means a server can send a specially crafted header along with an HTTP 401 and cause a DoS on the client. |
Open EdX | python.requests.security.disabled-cert-validation | SSL certifcation is disabled in order to accept self-signed certificates. |
RPyC | python.lang.correctness.common-mistakes.default-mutable-dict | In python, the default values of function parameters are instantiated at function definition time. All calls to that function that use the default value all point to the same global object. Because of this, two instances of Server (initialized without passing in a protocol_config option) actually share the same protocol_config. So modifying one server's config affects the other ones. |
CMake | python.lang.correctness.common-mistakes.default-mutable-dict | ConvertMSBuildXMLToJSON : Fix python mutable default data structure |
lte-template-flask | python.flask.security.unescaped-template-extension | Passing the host parameter to your jinja template in views.py:63 . lis_person_name_full comes from request.form.get('lis_person_name_full') . This line may be susceptible to XSS attacks. I went ahead and html-escaped the lis_person_name_full variable in launch.htm.j2 file using the {{value\|e}} pattern in Jinja. (https://jinja.palletsprojects.com/en/2.10.x/templates/#working-with-manual-escaping). Note that if your template file extensions ended with .html , .htm , .xml , or .xhtml , they would have been automatically html escaped. |
netskrafl.is | python.flask.security.xss.audit.template-unescaped-with-safe | The \| safe filter from from_url in the userprefs.html template causes XSS. |
pdfcpu | go.lang.correctness.useless-eqeq.eqeq-is-bad | It looks like this test case in pkg/pdfcpu/image_test.go was intending to compare bb1 with bb2 , but it was comparing bb1 twice. |