CVE-2023-0610: Wallabag/wallabag Wallabag Subject To Improper Authorization Vulnerability

MODERATE
Advisory Identifier: GHSA-mrqx-mjc4-vfh3
CVSS 5.4
Published
Advisory Summary

CVE-2023-0610 is a MODERATE (CVSS 5.4) wallabag subject to improper authorization vulnerability (General Security Weakness) affecting Wallabag/wallabag libraries in the Packagist ecosystem. The issue involves wallabag subject to improper authorization via annotations. Remediation is available by upgrading affected packages to version 2.5.3.

CVE-2023-0610 at a Glance

CVE Identifier CVE-2023-0610
GHSA Identifier GHSA-mrqx-mjc4-vfh3
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification General Security Weakness
Affected Product Wallabag/wallabag
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
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-2023-0610

To remediate this vulnerability, upgrade all affected Wallabag/wallabag dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

wallabag/wallabag fixed: 2.5.3
Upgrade wallabag/wallabag to 2.5.3
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 wallabag/wallabag

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-0610, inspect your project dependencies for Wallabag/wallabag:

inspect dependencies for wallabag/wallabag

Analyze the terminal output to locate any version of Wallabag/wallabag in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.5.3), 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 General Security Weakness. In Wallabag/wallabag, 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

### Impact The annotations feature lets users add annotations on highlighted parts of an entry. The controller does not validate authorization on `PUT` and `DELETE` requests which lets a logged user modify or delete any annotation using their ID on their endpoints `example.org/annotations/{id}`. These vulnerable requests also disclose highlighted parts of the entry to the attacker. You should immediately patch your instance to version 2.5.3 or higher if you have more than one user and/or having open registration. ### Resolution A user check is now done in the vulnerable methods before applying change on an annotation. The Annotation retrieval through a `ParamConverter` has also been replaced with a call to the `AnnotationRepository` in order to prevent any information disclosure through response discrepancy. ### Workarounds ### Credits We would like to thank @bAuh0lz for reporting this issue through huntr.dev. Reference: https://huntr.dev/bounties/8fdd9b31-d89b-4bbe-9557-20b960faf926/

CVE-2023-0610 Affected Wallabag/wallabag Versions

1 component(s)
Fixed Versions:
2.5.3
Product / Package Ecosystem Affected Versions Fixed Version
wallabag/wallabag
Packagist
≥ 2.0.0-beta.1
< 2.5.3
2.5.3

References

Frequently Asked Questions

What is CVE-2023-0610?
CVE-2023-0610 is a security vulnerability in Wallabag/wallabag involving wallabag subject to Improper Authorization via annotations under General Security Weakness.
Which Wallabag/wallabag versions are affected?
Affected versions include releases prior to 2.5.3 across affected packages: wallabag/wallabag.
What version fixes CVE-2023-0610?
Upgrading to 2.5.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is wallabag/wallabag affected?
Yes, wallabag/wallabag is affected in releases prior to 2.5.3. Upgrade your dependency to 2.5.3 or later.
What is the CVSS score of CVE-2023-0610?
CVE-2023-0610 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2023-0610?
CVE-2023-0610 is classified under General Security Weakness.
How can I check Packagist dependencies for CVE-2023-0610?
Run the dependency tree command: 'inspect dependencies for wallabag/wallabag'. 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-mrqx-mjc4-vfh3",
  "modified" : "2023-02-02T19:27:16Z",
  "published" : "2023-02-02T19:26:47Z",
  "aliases" : [ "CVE-2023-0610" ],
  "summary" : "wallabag subject to Improper Authorization via annotations",
  "details" : "### Impact\nThe annotations feature lets users add annotations on highlighted parts of an entry.\n\nThe controller does not validate authorization on `PUT` and `DELETE` requests which lets a logged user modify or delete any annotation using their ID on their endpoints `example.org/annotations/{id}`.\n\nThese vulnerable requests also disclose highlighted parts of the entry to the attacker.\n\nYou should immediately patch your instance to version 2.5.3 or higher if you have more than one user and/or having open registration.\n\n### Resolution\n\nA user check is now done in the vulnerable methods before applying change on an annotation.\n\nThe Annotation retrieval through a `ParamConverter` has also been replaced with a call to the `AnnotationRepository` in order to prevent any information disclosure through response discrepancy.\n\n### Workarounds\n\n\n\n### Credits\n\nWe would like to thank @bAuh0lz for reporting this issue through huntr.dev.\n\nReference: https://huntr.dev/bounties/8fdd9b31-d89b-4bbe-9557-20b960faf926/\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "wallabag/wallabag"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0-beta.1"
      }, {
        "fixed" : "2.5.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/wallabag/wallabag/security/advisories/GHSA-mrqx-mjc4-vfh3"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-0610"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wallabag/wallabag/commit/5ac6b6bff9e2e3a87fd88c2904ff3c6aac40722e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/wallabag/wallabag"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.dev/bounties/8fdd9b31-d89b-4bbe-9557-20b960faf926"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-02T19:26:47Z",
    "nvd_published_at" : null
  }
}