From 06076f5da31d748ead98561bf0ef4c8db23e37bf Mon Sep 17 00:00:00 2001 From: "daniel.aagren.seehartrai.madsen" <8853612+DanielMadsenDK@users.noreply.github.com> Date: Thu, 3 Oct 2024 12:04:57 -0700 Subject: [PATCH 1/2] Implemented a check to determine if unpublished knowledge articles are accessible. --- ca8467c41b9abc10ce0f62c3b24bcbaa/checksum.txt | 1 + ...check_46f6b819834592106137b6cfeeaad352.xml | 55 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 ca8467c41b9abc10ce0f62c3b24bcbaa/checksum.txt create mode 100644 ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_script_only_check_46f6b819834592106137b6cfeeaad352.xml diff --git a/ca8467c41b9abc10ce0f62c3b24bcbaa/checksum.txt b/ca8467c41b9abc10ce0f62c3b24bcbaa/checksum.txt new file mode 100644 index 0000000..f62fca1 --- /dev/null +++ b/ca8467c41b9abc10ce0f62c3b24bcbaa/checksum.txt @@ -0,0 +1 @@ +GMk-wMVtcl0e4HaeuZQZANxo2HAMeWyfhL8rbFLl_woCVyXOjsXdR7O1LSNRPaNARvxgRvjRsKeUMqXi-LPK4EoClDxNqk3Wx6qpPBGYVmhF9S7jsLROWoO5Rj1jiSisMbIsOVFuPN_ts_kAcUOlpwRSywuUD0Go7N2jHUFGg45f63KMtuZQRGtfAWwxSNNpZ9gtoq4JYulVrcmKdf_bKDyX1bSlzCzeXiL8ezaAI_l2Zj2hHdxsqF5hUEZLNFugquKGb_fR7WLoPsz2a8dJejAFgKLGI_Foz1ZekVncgM8k0Kbx13zj8ZYdn5BVnKE6gLQL12k2cr6Xr6ohpUJrLHpEdBaLri5zcAhQo35qtifNeIzKxZrfkoG72CJ2rgXkbjXwZjxVbQtwN1beAznnjjsw3nmQ7DyR3ytpRq_8X1nTg9NZ7qwmp8iYFEGm3A9vaZ2Gan1bgkcvFG5Kne80TqOTh2ev1oTZ1YI1xKYa7fQutdvMPSt-MEr5oj8Eu3uxtn0RVcKVMXOEh5WSDEBB69BmLGm1GIggD9gpCY6-a3_tvQ8Eb5CycVyH02LWYkgZJJOhB0ueIUo-_ldLl7BmTynkXFF0zouPxPQdKYb5jNfzXRi5p-okzqjdDsHP5XnV8ZnyEs_xdvSQHTHCnr7-AxjdnvzPtCTKH5mFzbLhID4 \ No newline at end of file diff --git a/ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_script_only_check_46f6b819834592106137b6cfeeaad352.xml b/ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_script_only_check_46f6b819834592106137b6cfeeaad352.xml new file mode 100644 index 0000000..07c6900 --- /dev/null +++ b/ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_script_only_check_46f6b819834592106137b6cfeeaad352.xml @@ -0,0 +1,55 @@ + + + true + security + Unpublished knowledge articles may contain sensitive information that should not be visible to anyone with read access. By preventing access to unpublished articles, reviewers are given the opportunity to verify the content before it is made accessible. This ensures that only properly reviewed and approved information is available to users with read access. + https://docs.servicenow.com/bundle/vancouver-servicenow-platform/page/product/knowledge-management/reference/r_KnowledgeProperties.html + scan_finding + Don't show unpublished knowledge articles + 2 + Set the glide.knowman.show_unpublished property to false. + + 100 + 0 + 1 + + Don't show unpublished knowledge articles + scan_script_only_check + daniel.aagren.seehartrai.madsen + 2024-10-03 18:56:04 + 46f6b819834592106137b6cfeeaad352 + 0 + Don't show unpublished knowledge articles + ca8467c41b9abc10ce0f62c3b24bcbaa + + ca8467c41b9abc10ce0f62c3b24bcbaa + scan_script_only_check_46f6b819834592106137b6cfeeaad352 + daniel.aagren.seehartrai.madsen + 2024-10-03 18:56:04 + + + + 46f6b819834592106137b6cfeeaad352 + daniel.aagren.seehartrai.madsen + 2024-10-03 18:56:04 + 6d677855834592106137b6cfeeaad3d3 + 0 + daniel.aagren.seehartrai.madsen + 2024-10-03 18:56:04 + scan_script_only_check
+ true +
+
From 2913bb81bbfba3619ae5c14cf474a16ca1dd8e8d Mon Sep 17 00:00:00 2001 From: Daniel Aagren Seehartrai Madsen <8853612+DanielMadsenDK@users.noreply.github.com> Date: Thu, 3 Oct 2024 21:08:24 +0200 Subject: [PATCH 2/2] Added new instance scan description to readme --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 1a1734c..d34a19a 100644 --- a/README.md +++ b/README.md @@ -300,6 +300,9 @@ Use GlideRecordSecure API to ensure the security checks are performed and unauth ### For loop iterators "i" should be declared In general, variables in JavaScript should be properly declared (e.g. using “var”). The declaration defines the scope of the variable, ensuring it's accessible only within the intended block. This prevents unintended variable pollution and conflicts. Especially in for loops, often an iterator “i” is used and not properly declared. For example “for (i=0; i<10; i++)” instead of “for (var i=0; i<10; i++)”. As a result, this could unintentionally alter the value of other 'i' iterators in different for loops. +### Don't show unpublished knowledge articles +Unpublished knowledge articles may contain sensitive information that should not be visible to anyone with read access. By preventing access to unpublished articles, reviewers are given the opportunity to verify the content before it is made accessible. This ensures that only properly reviewed and approved information is available to users with read access. + ## Category: User Experience ### Added a Number Prefix which already exists