-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete duplicate check for script in acl (#163)
Co-authored-by: admin <admin@example.com>
- Loading branch information
Showing
3 changed files
with
127 additions
and
42 deletions.
There are no files selected for viewing
126 changes: 126 additions & 0 deletions
126
...62c3b24bcbaa/author_elective_update/scan_table_check_eb21adf797697110710650081153af9c.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><record_update table="scan_table_check"> | ||
<scan_table_check action="DELETE"> | ||
<active>true</active> | ||
<advanced>false</advanced> | ||
<category>security</category> | ||
<conditions table="sys_security_acl">scriptISNOTEMPTY^advanced=false^EQ<item endquery="false" field="script" goto="false" newquery="false" operator="ISNOTEMPTY" or="false" value=""/> | ||
<item endquery="false" field="advanced" goto="false" newquery="false" operator="=" or="false" value="false"/> | ||
<item endquery="true" field="" goto="false" newquery="false" operator="=" or="false" value=""/> | ||
</conditions> | ||
<description>Script in ACL executes even if Advanced is unchecked. This may lead to confusion and unexpected behavior, coming from the script being hidden on the form but executed.</description> | ||
<documentation_url>https://docs.servicenow.com/bundle/utah-platform-security/page/administer/contextual-security/task/t_CreateAnACLRule.html</documentation_url> | ||
<finding_type>scan_finding</finding_type> | ||
<name>Script in ACL when Advanced is unchecked</name> | ||
<priority>1</priority> | ||
<resolution_details>Either check Advanced or Remove the script from the ACL, while making sure to maintain the same ACL result.</resolution_details> | ||
<run_condition/> | ||
<score_max>100</score_max> | ||
<score_min>0</score_min> | ||
<score_scale>1</score_scale> | ||
<script><![CDATA[(function (engine) { | ||
// Add your code here | ||
})(engine);]]></script> | ||
<short_description>Script in ACL executes even if Advanced is unchecked.</short_description> | ||
<sys_class_name>scan_table_check</sys_class_name> | ||
<sys_created_by>admin</sys_created_by> | ||
<sys_created_on>2023-10-04 20:36:19</sys_created_on> | ||
<sys_id>eb21adf797697110710650081153af9c</sys_id> | ||
<sys_mod_count>0</sys_mod_count> | ||
<sys_name>Script in ACL when Advanced is unchecked</sys_name> | ||
<sys_package display_value="Example Instance Checks" source="x_appe_exa_checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_package> | ||
<sys_policy/> | ||
<sys_scope display_value="Example Instance Checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_scope> | ||
<sys_update_name>scan_table_check_eb21adf797697110710650081153af9c</sys_update_name> | ||
<sys_updated_by>admin</sys_updated_by> | ||
<sys_updated_on>2023-10-04 20:36:19</sys_updated_on> | ||
<table>sys_security_acl</table> | ||
<use_manifest>false</use_manifest> | ||
</scan_table_check> | ||
<sys_update_version action="INSERT_OR_UPDATE"> | ||
<action>DELETE</action> | ||
<application display_value="Example Instance Checks">ca8467c41b9abc10ce0f62c3b24bcbaa</application> | ||
<file_path/> | ||
<instance_id>7c7abcb4db5631d82f082a5913961914</instance_id> | ||
<instance_name>dev200172</instance_name> | ||
<name>scan_table_check_eb21adf797697110710650081153af9c</name> | ||
<payload><?xml version="1.0" encoding="UTF-8"?><record_update table="scan_table_check"> | ||
<scan_table_check action="INSERT_OR_UPDATE"> | ||
<active>true</active> | ||
<advanced>false</advanced> | ||
<category>security</category> | ||
<conditions table="sys_security_acl">scriptISNOTEMPTY^advanced=false^EQ<item endquery="false" field="script" goto="false" newquery="false" operator="ISNOTEMPTY" or="false" value=""/> | ||
<item endquery="false" field="advanced" goto="false" newquery="false" operator="=" or="false" value="false"/> | ||
<item endquery="true" field="" goto="false" newquery="false" operator="=" or="false" value=""/> | ||
</conditions> | ||
<description>Script in ACL executes even if Advanced is unchecked. This may lead to confusion and unexpected behavior, coming from the script being hidden on the form but executed.</description> | ||
<documentation_url>https://docs.servicenow.com/bundle/utah-platform-security/page/administer/contextual-security/task/t_CreateAnACLRule.html</documentation_url> | ||
<finding_type>scan_finding</finding_type> | ||
<name>Script in ACL when Advanced is unchecked</name> | ||
<priority>1</priority> | ||
<resolution_details>Either check Advanced or Remove the script from the ACL, while making sure to maintain the same ACL result.</resolution_details> | ||
<run_condition/> | ||
<score_max>100</score_max> | ||
<score_min>0</score_min> | ||
<score_scale>1</score_scale> | ||
<script><![CDATA[(function (engine) { | ||
|
||
// Add your code here | ||
|
||
})(engine);]]></script> | ||
<short_description>Script in ACL executes even if Advanced is unchecked.</short_description> | ||
<sys_class_name>scan_table_check</sys_class_name> | ||
<sys_created_by>admin</sys_created_by> | ||
<sys_created_on>2023-10-04 20:36:19</sys_created_on> | ||
<sys_id>eb21adf797697110710650081153af9c</sys_id> | ||
<sys_mod_count>0</sys_mod_count> | ||
<sys_name>Script in ACL when Advanced is unchecked</sys_name> | ||
<sys_package display_value="Example Instance Checks" source="x_appe_exa_checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_package> | ||
<sys_policy/> | ||
<sys_scope display_value="Example Instance Checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_scope> | ||
<sys_update_name>scan_table_check_eb21adf797697110710650081153af9c</sys_update_name> | ||
<sys_updated_by>admin</sys_updated_by> | ||
<sys_updated_on>2023-10-04 20:36:19</sys_updated_on> | ||
<table>sys_security_acl</table> | ||
<use_manifest>false</use_manifest> | ||
</scan_table_check> | ||
</record_update></payload> | ||
<payload_hash>1356454248</payload_hash> | ||
<record_name>Script in ACL when Advanced is unchecked</record_name> | ||
<reverted_from/> | ||
<source>f587d90bc3dd1250faa4bd33e4013147</source> | ||
<source_table>sys_upgrade_history</source_table> | ||
<state>previous</state> | ||
<sys_created_by>admin</sys_created_by> | ||
<sys_created_on>2024-10-21 18:01:38</sys_created_on> | ||
<sys_id>2387514bc3dd1250faa4bd33e40131fe</sys_id> | ||
<sys_mod_count>0</sys_mod_count> | ||
<sys_recorded_at>192b03de1990000001</sys_recorded_at> | ||
<sys_updated_by>admin</sys_updated_by> | ||
<sys_updated_on>2024-10-21 18:01:38</sys_updated_on> | ||
<type>Table Check</type> | ||
<update_guid>2f87514b95dd1250d8d7157d4a5955fd</update_guid> | ||
<update_guid_history>2f87514b95dd1250d8d7157d4a5955fd:0,e267d9c752dd1250e0ae7bf3aa17e665:-2023533997,eea83dedc1c5de50dcb00ddc90e599ae:1356454248</update_guid_history> | ||
</sys_update_version> | ||
<sys_metadata_delete action="INSERT_OR_UPDATE"> | ||
<sys_audit_delete display_value="Script in ACL when Advanced is unchecked">1379110bc3dd1250faa4bd33e4013183</sys_audit_delete> | ||
<sys_class_name>sys_metadata_delete</sys_class_name> | ||
<sys_created_by>admin</sys_created_by> | ||
<sys_created_on>2024-10-21 18:10:05</sys_created_on> | ||
<sys_db_object display_value="" name="scan_table_check">scan_table_check</sys_db_object> | ||
<sys_id>6497f98bb9dc40a28cfd0e9f7ed83e24</sys_id> | ||
<sys_metadata>eb21adf797697110710650081153af9c</sys_metadata> | ||
<sys_mod_count>0</sys_mod_count> | ||
<sys_name>Script in ACL when Advanced is unchecked</sys_name> | ||
<sys_package display_value="Example Instance Checks" source="x_appe_exa_checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_package> | ||
<sys_parent/> | ||
<sys_policy/> | ||
<sys_scope display_value="Example Instance Checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_scope> | ||
<sys_scope_delete display_value="">30a78b9b9290467a96959a65d2b2d304</sys_scope_delete> | ||
<sys_update_name>scan_table_check_eb21adf797697110710650081153af9c</sys_update_name> | ||
<sys_update_version display_value="scan_table_check_eb21adf797697110710650081153af9c">2387514bc3dd1250faa4bd33e40131fe</sys_update_version> | ||
<sys_updated_by>admin</sys_updated_by> | ||
<sys_updated_on>2024-10-21 18:10:05</sys_updated_on> | ||
</sys_metadata_delete> | ||
</record_update> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
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6LcbJwm89M_IhiUfBlg9KMzbZzJ1Q44nr-nHDANM9H1fNzy9thDr-OAsbVTCahF5NhofxI7mDqnesJAbzVslzWULRpie4mUVljWpe3_z6dlTdRYPpdF0suX6D0HI-rNd7ZiZXvMbhNHBmaLSiDVRgeWj7R-YBEsUSUWHGinybIv8TQXYnIqjipFvFHIXQ2kiQVFEfeOxhHRMg2Ox4QfQ01rWWrwWL8cZpH5PHoy-FVzpzujsqC9OS5MHFdPT7n-NTNeCp34xU3dMV40tJODCzC32V79N2FCLH4Pw |
41 changes: 0 additions & 41 deletions
41
...67c41b9abc10ce0f62c3b24bcbaa/update/scan_table_check_eb21adf797697110710650081153af9c.xml
This file was deleted.
Oops, something went wrong.