Package Instance
Lookup for vulnerable packages by Package URL.
GET /api/packages/68270?format=api
{ "url": "http://public2.vulnerablecode.io/api/packages/68270?format=api", "purl": "pkg:composer/yiisoft/yii2-authclient@2.2.14", "type": "composer", "namespace": "yiisoft", "name": "yii2-authclient", "version": "2.2.14", "qualifiers": {}, "subpath": "", "is_vulnerable": true, "next_non_vulnerable_version": "2.2.15", "latest_non_vulnerable_version": "2.2.15", "affected_by_vulnerabilities": [ { "url": "http://public2.vulnerablecode.io/api/vulnerabilities/46696?format=api", "vulnerability_id": "VCID-a8vd-tpju-6baj", "summary": "yii2-authclient vulnerable to possible timing attack on string comparison in OAuth1, OAuth2 and OpenID Connect implementation\n### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nOriginal Report:\n\n> The Oauth1/2 \"state\" and OpenID Connect \"nonce\" is vulnerable for a \"timing attack\" since it's compared via regular string \n> comparison (instead of `Yii::$app->getSecurity()->compareString()`).\n\nAffected Code:\n\n1. OAuth 1 \"state\"\n\n https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth1.php#L158\n\n3. OAuth 2 \"state\"\n \n https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth2.php#L121\n\n4. OpenID Connect \"nonce\"\n \n https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OpenIdConnect.php#L420\n\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\nTBD: Replace strcmp with `Yii::$app->getSecurity()->compareString()`).\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nnot as far as I see.\n\n### References\n_Are there any links users can visit to find out more?_", "references": [ { "reference_url": "https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth1.php#L158", "reference_id": "", "reference_type": "", "scores": [], "url": "https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth1.php#L158" }, { "reference_url": "https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth2.php#L121", "reference_id": "", "reference_type": "", "scores": [], "url": "https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth2.php#L121" }, { "reference_url": "https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OpenIdConnect.php#L420", "reference_id": "", "reference_type": "", "scores": [], "url": "https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OpenIdConnect.php#L420" }, { "reference_url": "https://github.com/yiisoft/yii2-authclient/commit/dabddf2154ab7e7703740205a069202554089248", "reference_id": "", "reference_type": "", "scores": [], "url": "https://github.com/yiisoft/yii2-authclient/commit/dabddf2154ab7e7703740205a069202554089248" }, { "reference_url": "https://github.com/advisories/GHSA-w8vh-p74j-x9xp", "reference_id": "GHSA-w8vh-p74j-x9xp", "reference_type": "", "scores": [], "url": "https://github.com/advisories/GHSA-w8vh-p74j-x9xp" }, { "reference_url": "https://github.com/yiisoft/yii2-authclient/security/advisories/GHSA-w8vh-p74j-x9xp", "reference_id": "GHSA-w8vh-p74j-x9xp", "reference_type": "", "scores": [], "url": "https://github.com/yiisoft/yii2-authclient/security/advisories/GHSA-w8vh-p74j-x9xp" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/68271?format=api", "purl": "pkg:composer/yiisoft/yii2-authclient@2.2.15", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/yiisoft/yii2-authclient@2.2.15" } ], "aliases": [ "CVE-2023-50708", "GHSA-w8vh-p74j-x9xp" ], "risk_score": null, "exploitability": null, "weighted_severity": null, "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-a8vd-tpju-6baj" } ], "fixing_vulnerabilities": [], "risk_score": null, "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/yiisoft/yii2-authclient@2.2.14" }