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
20
20
* Since we really want "the last unrestriction, not nullified by a restriction",
21
21
* we also disallow flow into restrictions.
22
22
*/
23
- module InsecureContextConfiguration2 implements DataFlow:: StateConfigSig {
23
+ module InsecureContextConfiguration implements DataFlow:: StateConfigSig {
24
24
private newtype TFlowState =
25
25
TMkFlowState ( TlsLibrary library , int bits ) {
26
26
bits in [ 0 .. max ( any ( ProtocolVersion v ) .getBit ( ) ) * 2 - 1 ]
@@ -112,7 +112,7 @@ module InsecureContextConfiguration2 implements DataFlow::StateConfigSig {
112
112
}
113
113
}
114
114
115
- private module InsecureContextFlow = DataFlow:: MakeWithState< InsecureContextConfiguration2 > ;
115
+ private module InsecureContextFlow = DataFlow:: MakeWithState< InsecureContextConfiguration > ;
116
116
117
117
/**
118
118
* 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 {
79
79
80
80
override ProtocolRestriction protocol_restriction ( ) { result instanceof SetOptionsCall }
81
81
82
- override ProtocolUnrestriction protocol_unrestriction ( ) {
83
- result instanceof UnspecificPyOpenSslContextCreation
84
- }
82
+ override ProtocolUnrestriction protocol_unrestriction ( ) { none ( ) }
85
83
}
Original file line number Diff line number Diff line change @@ -217,9 +217,5 @@ class Ssl extends TlsLibrary {
217
217
result instanceof OptionsAugAndNot
218
218
or
219
219
result instanceof ContextSetVersion
220
- or
221
- result instanceof UnspecificSslContextCreation
222
- or
223
- result instanceof UnspecificSslDefaultContextCreation
224
220
}
225
221
}
You can’t perform that action at this time.
0 commit comments