File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed
python/ql/src/Security/CWE-327 Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import TlsLibraryModel
2020 * Since we really want "the last unrestriction, not nullified by a restriction",
2121 * we also disallow flow into restrictions.
2222 */
23- module InsecureContextConfiguration2 implements DataFlow:: StateConfigSig {
23+ module InsecureContextConfiguration implements DataFlow:: StateConfigSig {
2424 private newtype TFlowState =
2525 TMkFlowState ( TlsLibrary library , int bits ) {
2626 bits in [ 0 .. max ( any ( ProtocolVersion v ) .getBit ( ) ) * 2 - 1 ]
@@ -112,7 +112,7 @@ module InsecureContextConfiguration2 implements DataFlow::StateConfigSig {
112112 }
113113}
114114
115- private module InsecureContextFlow = DataFlow:: MakeWithState< InsecureContextConfiguration2 > ;
115+ private module InsecureContextFlow = DataFlow:: MakeWithState< InsecureContextConfiguration > ;
116116
117117/**
118118 * Holds if `conectionCreation` marks the creation of a connection based on the contex
Original file line number Diff line number Diff line change @@ -79,7 +79,5 @@ class PyOpenSsl extends TlsLibrary {
7979
8080 override ProtocolRestriction protocol_restriction ( ) { result instanceof SetOptionsCall }
8181
82- override ProtocolUnrestriction protocol_unrestriction ( ) {
83- result instanceof UnspecificPyOpenSslContextCreation
84- }
82+ override ProtocolUnrestriction protocol_unrestriction ( ) { none ( ) }
8583}
Original file line number Diff line number Diff line change @@ -217,9 +217,5 @@ class Ssl extends TlsLibrary {
217217 result instanceof OptionsAugAndNot
218218 or
219219 result instanceof ContextSetVersion
220- or
221- result instanceof UnspecificSslContextCreation
222- or
223- result instanceof UnspecificSslDefaultContextCreation
224220 }
225221}
You can’t perform that action at this time.
0 commit comments