CVE-2020-13700: Airesvsg/acf to rest api Acf-to-rest-api Plugin Insecure Direct Object Vulnerability

HIGH
Advisory Identifier: GHSA-r345-x8hr-2r9p
CVSS 7.5
CWE-639 CWE-200
Published
Advisory Summary

CVE-2020-13700 is a HIGH (CVSS 7.5) acf-to-rest-api plugin insecure direct object vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Airesvsg/acf to rest api libraries in the Packagist ecosystem. The issue involves acf-to-rest-api plugin insecure direct object reference (idor) via permalink manipulation. Remediation is available in the latest vendor maintenance releases.

CVE-2020-13700 at a Glance

CVE Identifier CVE-2020-13700
GHSA Identifier GHSA-r345-x8hr-2r9p
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product Airesvsg/acf to rest api
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.5

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2020-13700

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

airesvsg/acf-to-rest-api fixed: Latest secure release
Upgrade airesvsg/acf-to-rest-api 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 airesvsg/acf-to-rest-api

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-13700, inspect your project dependencies for Airesvsg/acf to rest api:

inspect dependencies for airesvsg/acf-to-rest-api

Analyze the terminal output to locate any version of Airesvsg/acf to rest api 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-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 Airesvsg/acf to rest api, 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

An issue was discovered in the acf-to-rest-api plugin through 3.1.0 for WordPress. It allows an insecure direct object reference via permalinks manipulation, as demonstrated by a `wp-json/acf/v3/options/` request that reads sensitive information in the `wp_options` table, such as the login and pass values.

CVE-2020-13700 Affected Airesvsg/acf to rest api Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
airesvsg/acf-to-rest-api
Packagist
≤ 3.1.0

References

Frequently Asked Questions

What is CVE-2020-13700?
CVE-2020-13700 is a security vulnerability in Airesvsg/acf to rest api involving acf-to-rest-api plugin insecure direct object reference (IDOR) via permalink manipulation under CWE-639: Authorization Bypass Through User-Controlled Key.
Which Airesvsg/acf to rest api versions are affected?
Affected versions include releases prior to current release patches across affected packages: airesvsg/acf-to-rest-api.
What version fixes CVE-2020-13700?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is airesvsg/acf-to-rest-api affected?
Yes, airesvsg/acf-to-rest-api 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-2020-13700?
CVE-2020-13700 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2020-13700?
CVE-2020-13700 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 Packagist dependencies for CVE-2020-13700?
Run the dependency tree command: 'inspect dependencies for airesvsg/acf-to-rest-api'. 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-r345-x8hr-2r9p",
  "modified" : "2023-11-15T20:26:56Z",
  "published" : "2022-05-24T17:21:35Z",
  "aliases" : [ "CVE-2020-13700" ],
  "summary" : "acf-to-rest-api plugin insecure direct object reference (IDOR) via permalink manipulation",
  "details" : "An issue was discovered in the acf-to-rest-api plugin through 3.1.0 for WordPress. It allows an insecure direct object reference via permalinks manipulation, as demonstrated by a `wp-json/acf/v3/options/` request that reads sensitive information in the `wp_options` table, such as the login and pass values.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "airesvsg/acf-to-rest-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "3.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-13700"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/mariuszpoplwski/4fbaab7f271bea99c733e3f2a4bafbb5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/airesvsg/acf-to-rest-api"
  }, {
    "type" : "WEB",
    "url" : "https://wordpress.org/plugins/acf-to-rest-api/#developers"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-639" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-11-15T20:26:56Z",
    "nvd_published_at" : "2020-06-24T15:15:00Z"
  }
}