CVE-2023-32310: Dataease plugin common DataEase API Interface Has IDOR Vulnerability

HIGH
Advisory Identifier: GHSA-7hv6-gv38-78wj
CVSS 8.1
CWE-639
Published
Advisory Summary

CVE-2023-32310 is a HIGH (CVSS 8.1) dataease api interface has idor vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Dataease plugin common libraries in the Maven ecosystem. The issue involves dataease api interface has idor vulnerability. Remediation is available by upgrading affected packages to version 1.18.7.

CVE-2023-32310 at a Glance

CVE Identifier CVE-2023-32310
GHSA Identifier GHSA-7hv6-gv38-78wj
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product Dataease plugin common
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.1

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:N/I:H/A:H).

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 None (C:N)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2023-32310

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

io.dataease:dataease-plugin-common fixed: 1.18.7
<dependency>
    <groupId>io.dataease</groupId>
    <artifactId>dataease-plugin-common</artifactId>
    <version>1.18.7</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=io.dataease

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-32310, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=io.dataease

Analyze the terminal output to locate any version of Dataease plugin common in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.18.7), your application is affected.

Note: The mvn dependency:tree -Dincludes=io.dataease command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Dataease plugin common, 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 api interface for DataEase delete dashboard and delete system messages is vulnerable to IDOR. The interface to delete the dashboard: 1. Create two users: user1 and user2 2. User1 creates a dashboard named pan1 3. User2 creates a dashboard named pan2 4. Both user1 and user2 share their dashboards with the demo user 5. User1 wants to delete his dashboard. We hijack the request with burpsuite. The request will probably look like this: POST /api/share/removePanelShares/440efa7f-efd8-11ed-bec7-1144724bc08c HTTP/1.1. 440efa7f-efd8-11ed-bec7-1144724bc08c is the ID of pan1 6. We replace this ID with the ID of pan2 and continue the execution (i.e. we delete the shares of others) 7. Successfully remove the shared link ![image](https://user-images.githubusercontent.com/985347/238271028-d23a9ca3-cd77-42a2-9199-a28ef03f5bf0.png) The interface to delete system messages: 1. Our request to delete a message is shown below ![image](https://user-images.githubusercontent.com/985347/238271474-1bf6be85-7a39-436d-b209-ac88bf52b591.png) 2. We can delete all messages by simply enumerating the message ID, regardless of whether the message belongs to the requester or not. 3. The interface for marking read messages is also affected Affected versions: <= 1.18.6 ### Patches The vulnerability has been fixed in v1.18.7. ### Workarounds It is recommended to upgrade the version to v1.18.7. ### References If you have any questions or comments about this advisory: Open an issue in https://github.com/dataease/dataease Email us at [wei@fit2cloud.com](mailto:wei@fit2cloud.com)

CVE-2023-32310 Affected Dataease plugin common Versions

1 component(s)
Fixed Versions:
1.18.7
Product / Package Ecosystem Affected Versions Fixed Version
io.dataease:dataease-plugin-common
Maven
< 1.18.7
1.18.7

References

Frequently Asked Questions

What is CVE-2023-32310?
CVE-2023-32310 is a security vulnerability in Dataease plugin common involving DataEase API interface has IDOR vulnerability under CWE-639: Authorization Bypass Through User-Controlled Key.
Which Dataease plugin common versions are affected?
Affected versions include releases prior to 1.18.7 across affected packages: io.dataease:dataease-plugin-common.
What version fixes CVE-2023-32310?
Upgrading to 1.18.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is dataease-plugin-common affected?
Yes, io.dataease:dataease-plugin-common is affected in releases prior to 1.18.7. Upgrade your dependency to 1.18.7 or later.
What is the CVSS score of CVE-2023-32310?
CVE-2023-32310 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H.
What CWE is associated with CVE-2023-32310?
CVE-2023-32310 is classified under CWE-639: Authorization Bypass Through User-Controlled Key (The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.).
How can I check Maven dependencies for CVE-2023-32310?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.dataease'. 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-7hv6-gv38-78wj",
  "modified" : "2023-06-02T17:09:17Z",
  "published" : "2023-06-02T17:09:17Z",
  "aliases" : [ "CVE-2023-32310" ],
  "summary" : "DataEase API interface has IDOR vulnerability",
  "details" : "### Impact\nThe api interface for DataEase delete dashboard and delete system messages is vulnerable to IDOR.\n\nThe interface to delete the dashboard:\n1. Create two users: user1 and user2\n2. User1 creates a dashboard named pan1\n3. User2 creates a dashboard named pan2\n4. Both user1 and user2 share their dashboards with the demo user\n5. User1 wants to delete his dashboard. We hijack the request with burpsuite. The request will probably look like this: POST /api/share/removePanelShares/440efa7f-efd8-11ed-bec7-1144724bc08c HTTP/1.1. 440efa7f-efd8-11ed-bec7-1144724bc08c is the ID of pan1\n6. We replace this ID with the ID of pan2 and continue the execution (i.e. we delete the shares of others)\n7. Successfully remove the shared link\n![image](https://user-images.githubusercontent.com/985347/238271028-d23a9ca3-cd77-42a2-9199-a28ef03f5bf0.png)\n\nThe interface to delete system messages:\n1. Our request to delete a message is shown below\n![image](https://user-images.githubusercontent.com/985347/238271474-1bf6be85-7a39-436d-b209-ac88bf52b591.png)\n2. We can delete all messages by simply enumerating the message ID, regardless of whether the message belongs to the requester or not.\n3. The interface for marking read messages is also affected\n\nAffected versions: <= 1.18.6\n\n### Patches\nThe vulnerability has been fixed in v1.18.7.\n\n### Workarounds\nIt is recommended to upgrade the version to v1.18.7.\n\n### References\nIf you have any questions or comments about this advisory:\n\nOpen an issue in https://github.com/dataease/dataease\nEmail us at [wei@fit2cloud.com](mailto:wei@fit2cloud.com)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.dataease:dataease-plugin-common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.18.7"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.18.6"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/dataease/dataease/security/advisories/GHSA-7hv6-gv38-78wj"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-32310"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dataease/dataease/pull/5342"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dataease/dataease/commit/72f428e87b5395c03d2f94ef6185fc247ddbc8dc"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/dataease/dataease"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dataease/dataease/releases/tag/v1.18.7"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-639" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-06-02T17:09:17Z",
    "nvd_published_at" : "2023-06-01T16:15:09Z"
  }
}