CVE-2024-21492: Github.com/greenpau/caddy security Insufficient Session Expiration Vulnerability

MODERATE
Advisory Identifier: GHSA-vp66-gf7w-9m4x
CVSS 4.8
CWE-613
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-21492
GHSA Identifier GHSA-vp66-gf7w-9m4x
Severity MODERATE
CVSS v3.1 Base Score 4.8
CWE Classification CWE-613: Insufficient Session Expiration
Affected Product Github.com/greenpau/caddy security
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

github.com/greenpau/caddy-security fixed: Latest secure release
Upgrade github.com/greenpau/caddy-security to Latest secure release
Verify Direct and Transitive Dependencies

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

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.

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?
CVE-2024-21492 is a security vulnerability in Github.com/greenpau/caddy security involving Insufficient Session Expiration in github.com/greenpau/caddy-security under CWE-613: Insufficient Session Expiration.
Which Github.com/greenpau/caddy security versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/greenpau/caddy-security.
What version fixes CVE-2024-21492?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/greenpau/caddy-security affected?
Yes, github.com/greenpau/caddy-security is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2024-21492?
CVE-2024-21492 has a CVSS v3.1 base score of 4.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2024-21492?
CVE-2024-21492 is classified under CWE-613: Insufficient Session Expiration (According to WASC, "Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization.").
How can I check Go dependencies for CVE-2024-21492?
Run the dependency tree command: 'inspect dependencies for github.com/greenpau/caddy-security'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}