Skip to content

Commit d6d27df

Browse files
Removing all usage of single quotes
1 parent a566ffa commit d6d27df

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

cpp/ql/src/Security/CWE/CWE-732/UnsafeDaclSecurityDescriptor.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<qhelp>
55

66
<overview>
7-
<p>This query indicates that a call is setting the <code>SECURITY_DESCRIPTOR</code>'s DACL field to null.</p>
7+
<p>This query indicates that a call is setting the DACL field in a <code>SECURITY_DESCRIPTOR</code> to null.</p>
88
<p>When using <code>SetSecurityDescriptorDacl</code> to set a discretionary access control (DACL), setting the <code>bDaclPresent</code> argument to <code>TRUE</code> indicates the prescence of a DACL in the security description in the argument <code>pDacl</code>.</p>
99
<p>When the <code>pDacl</code> parameter does not point to a DACL (i.e. it is <code>NULL</code>) and the <code>bDaclPresent</code> flag is <code>TRUE</code>, a <code>NULL DACL</code> is specified.</p>
1010
<p>A <code>NULL DACL</code> grants full access to any user who requests it; normal security checking is not performed with respect to the object.</p>

cpp/ql/src/Security/CWE/CWE-732/UnsafeDaclSecurityDescriptor.ql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @name Setting a SECURITY_DESCRIPTOR's DACL to NULL
3-
* @description Setting a SECURITY_DESCRIPTOR's DACL to NULL will result in an unprotected object.
2+
* @name Setting a DACL to NULL in a SECURITY_DESCRIPTOR
3+
* @description Setting a DACL to NULL in a SECURITY_DESCRIPTOR will result in an unprotected object.
44
* If the DACL that belongs to the security descriptor of an object is set to NULL, a null DACL is created.
55
* A null DACL grants full access to any user who requests it;
66
* normal security checking is not performed with respect to the object.
@@ -53,14 +53,14 @@ from SetSecurityDescriptorDaclFunctionCall call, string message
5353
where exists
5454
(
5555
NullValue nullExpr |
56-
message = "Setting a SECURITY_DESCRIPTOR's DACL to NULL will result in an unprotected object." |
56+
message = "Setting a DACL to NULL in a SECURITY_DESCRIPTOR will result in an unprotected object." |
5757
call.getArgument(1).getValue().toInt() != 0
5858
and call.getArgument(2) = nullExpr
5959
) or exists
6060
(
6161
Expr constassign, VariableAccess var,
6262
SetSecurityDescriptorDaclFunctionConfiguration config |
63-
message = "Setting a SECURITY_DESCRIPTOR's DACL using variable " + var + " that is set to NULL will result in an unprotected object." |
63+
message = "Setting a DACL to NULL in a SECURITY_DESCRIPTOR using variable " + var + " that is set to NULL will result in an unprotected object." |
6464
var = call.getArgument(2)
6565
and config.hasFlow(DataFlow::exprNode(constassign), DataFlow::exprNode(var))
6666
)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
| UnsafeDaclSecurityDescriptor.cpp:70:9:70:33 | call to SetSecurityDescriptorDacl | Setting a SECURITY_DESCRIPTOR\u2019s DACL to NULL will result in an unprotected object. |
2-
| UnsafeDaclSecurityDescriptor.cpp:76:9:76:33 | call to SetSecurityDescriptorDacl | Setting a SECURITY_DESCRIPTOR\u2019s DACL using variable pDacl that is set to NULL will result in an unprotected object. |
1+
| UnsafeDaclSecurityDescriptor.cpp:70:9:70:33 | call to SetSecurityDescriptorDacl | Setting a DACL to NULL in a SECURITY_DESCRIPTOR will result in an unprotected object. |
2+
| UnsafeDaclSecurityDescriptor.cpp:76:9:76:33 | call to SetSecurityDescriptorDacl | Setting a DACL to NULL in a SECURITY_DESCRIPTOR using variable pDacl that is set to NULL will result in an unprotected object. |

0 commit comments

Comments
 (0)