CVE-2017-12867: Simplesamlphp/simplesamlphp SimpleSAMLphp Invalid Token Creation And Vulnerability
MODERATECVE-2017-12867 is a MODERATE (CVSS 5.9) simplesamlphp invalid token creation and vulnerability (CWE-613: Insufficient Session Expiration) affecting Simplesamlphp/simplesamlphp libraries in the Packagist ecosystem. The issue involves simplesamlphp invalid token creation and validation. Remediation is available by upgrading affected packages to version 1.14.15.
CVE-2017-12867 at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2017-12867
To remediate this vulnerability, upgrade all affected Simplesamlphp/simplesamlphp 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 simplesamlphp/simplesamlphp to 1.14.15
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for simplesamlphp/simplesamlphp
How to Check if You Are Affected
To determine whether your application is affected by CVE-2017-12867, inspect your project dependencies for Simplesamlphp/simplesamlphp:
inspect dependencies for simplesamlphp/simplesamlphp
Analyze the terminal output to locate any version of Simplesamlphp/simplesamlphp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.14.15), 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-613: Insufficient Session Expiration, where according to wasc, "insufficient session expiration is when a web site permits an attacker to reuse old session credentials or session ids for authorization.". In Simplesamlphp/simplesamlphp, 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-2017-12867 Affected Simplesamlphp/simplesamlphp Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
simplesamlphp/simplesamlphp
|
Packagist |
≥ 1.14.0
< 1.14.15
|
1.14.15
|
References
Frequently Asked Questions
What is CVE-2017-12867?
Which Simplesamlphp/simplesamlphp versions are affected?
What version fixes CVE-2017-12867?
Is simplesamlphp/simplesamlphp affected?
What is the CVSS score of CVE-2017-12867?
What CWE is associated with CVE-2017-12867?
How can I check Packagist dependencies for CVE-2017-12867?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-597c-mh7m-48v7",
"modified" : "2024-04-25T21:37:10Z",
"published" : "2022-05-13T01:42:46Z",
"aliases" : [ "CVE-2017-12867" ],
"summary" : "SimpleSAMLphp Invalid token creation and validation",
"details" : "The SimpleSAML_Auth_TimeLimitedToken class in SimpleSAMLphp 1.14.14 and earlier allows attackers with access to a secret token to extend its validity period by manipulating the prepended time offset.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "simplesamlphp/simplesamlphp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.14.0"
}, {
"fixed" : "1.14.15"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-12867"
}, {
"type" : "WEB",
"url" : "https://github.com/simplesamlphp/simplesamlphp/commit/608f24c2d5afd70c2af050785d2b12f878b33c68"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/simplesamlphp/simplesamlphp/CVE-2017-12867.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/simplesamlphp/simplesamlphp"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2017/12/msg00007.html"
}, {
"type" : "WEB",
"url" : "https://simplesamlphp.org/security/201708-01"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2018/dsa-4127"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-613" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-25T21:37:10Z",
"nvd_published_at" : "2017-08-29T15:29:00Z"
}
}