CVE-2024-21492: Github.com/greenpau/caddy security Insufficient Session Expiration Vulnerability
MODERATECVE-2024-21492 is a MODERATE (CVSS 4.8) insufficient session expiration vulnerability (CWE-613: Insufficient Session Expiration) affecting Github.com/greenpau/caddy security libraries in the Go ecosystem. The issue involves insufficient session expiration in github.com/greenpau/caddy-security. Remediation is available in the latest vendor maintenance releases.
CVE-2024-21492 at a Glance
Security Impact
CVSS: 4.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N).
How to Fix CVE-2024-21492
To remediate this vulnerability, upgrade all affected Github.com/greenpau/caddy security 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 github.com/greenpau/caddy-security to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/greenpau/caddy-security
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-21492, inspect your project dependencies for Github.com/greenpau/caddy security:
inspect dependencies for github.com/greenpau/caddy-security
Analyze the terminal output to locate any version of Github.com/greenpau/caddy security in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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 Github.com/greenpau/caddy security, 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-2024-21492 Affected Github.com/greenpau/caddy security Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/greenpau/caddy-security
|
Go |
≤ 1.1.23
|
|
References
Frequently Asked Questions
What is CVE-2024-21492?
Which Github.com/greenpau/caddy security versions are affected?
What version fixes CVE-2024-21492?
Is github.com/greenpau/caddy-security affected?
What is the CVSS score of CVE-2024-21492?
What CWE is associated with CVE-2024-21492?
How can I check Go dependencies for CVE-2024-21492?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vp66-gf7w-9m4x",
"modified" : "2024-02-20T23:47:50Z",
"published" : "2024-02-17T06:30:34Z",
"aliases" : [ "CVE-2024-21492" ],
"summary" : "Insufficient Session Expiration in github.com/greenpau/caddy-security",
"details" : "All versions of the package github.com/greenpau/caddy-security are vulnerable to Insufficient Session Expiration due to improper user session invalidation upon clicking the \"Sign Out\" button. User sessions remain valid even after requests are sent to /logout and /oauth2/google/logout. Attackers who gain access to an active but supposedly logged-out session can perform unauthorized actions on behalf of the user.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/greenpau/caddy-security"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.1.23"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-21492"
}, {
"type" : "WEB",
"url" : "https://github.com/greenpau/caddy-security/issues/272"
}, {
"type" : "WEB",
"url" : "https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-5920787"
}, {
"type" : "PACKAGE",
"url" : "github.com/greenpau/caddy-security"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-613" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-20T23:47:50Z",
"nvd_published_at" : "2024-02-17T05:15:08Z"
}
}