CVE-2021-30492: Zendesk/zendesk api client php Lack Of Input Validation Vulnerability
CRITICALCVE-2021-30492 is a CRITICAL lack of input validation vulnerability (CWE-20: Improper Input Validation) affecting Zendesk/zendesk api client php libraries in the Packagist ecosystem. The issue involves lack of input validation in zendesk_api_client_php for zendesk subdomain. Remediation is available by upgrading affected packages to version 2.2.11.
CVE-2021-30492 at a Glance
How to Fix CVE-2021-30492
To remediate this vulnerability, upgrade all affected Zendesk/zendesk api client php dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade zendesk/zendesk_api_client_php to 2.2.11
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for zendesk/zendesk_api_client_php
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-30492, inspect your project dependencies for Zendesk/zendesk api client php:
inspect dependencies for zendesk/zendesk_api_client_php
Analyze the terminal output to locate any version of Zendesk/zendesk api client php in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.11), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Zendesk/zendesk api client php, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2021-30492 Affected Zendesk/zendesk api client php Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
zendesk/zendesk_api_client_php
|
Packagist |
< 2.2.11
|
2.2.11
|
References
Frequently Asked Questions
What is CVE-2021-30492?
Which Zendesk/zendesk api client php versions are affected?
What version fixes CVE-2021-30492?
Is zendesk/zendesk_api_client_php affected?
What CWE is associated with CVE-2021-30492?
How can I check Packagist dependencies for CVE-2021-30492?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q348-f93x-9gx4",
"modified" : "2021-04-28T22:29:16Z",
"published" : "2021-04-29T21:53:06Z",
"aliases" : [ "CVE-2021-30492" ],
"summary" : "Lack of Input Validation in zendesk_api_client_php for Zendesk Subdomain",
"details" : "### Impact\nLack of input validation of the Zendesk subdomain could expose users of the library to Server Side Request Forgery (SSRF).\n\n### Resolution\nValidate the provided Zendesk subdomain to be a valid subdomain in:\n* getAuthUrl\n* getAccessToken",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "zendesk/zendesk_api_client_php"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.2.11"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/zendesk/zendesk_api_client_php/security/advisories/GHSA-q348-f93x-9gx4"
}, {
"type" : "WEB",
"url" : "https://github.com/zendesk/zendesk_api_client_php/pull/466"
}, {
"type" : "WEB",
"url" : "https://github.com/zendesk/zendesk_api_client_php/commit/b451b743d9d6d81a9abf7cb86e70ec9c5332123e"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-918" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2021-04-28T22:29:16Z",
"nvd_published_at" : null
}
}