Missing AuthorizationWeakness · CWE-862

CVE-2024-0629

MEDIUM · 5.3 CVSS v3.1 Published 2024-05-02
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
62/100
Remediation priority · Elevated
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
The 2Checkout Payment Gateway for WooCommerce plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the sniff_ins function in all versions up to, and including, 6.2. This makes it possible for unauthenticated attackers to make changes to orders and mark them as paid.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

The 2Checkout Payment Gateway plugin for WooCommerce lacks authorization checks on the sniff_ins function, allowing unauthenticated attackers to call this function directly and modify order data, specifically to mark orders as paid without proper payment processing.

MitigationUpdate to version 6.3 or later when available; until then, consider restricting access to the vulnerable endpoint via server-side rules or deploying a WAF rule to block unauthorized order modification requests.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify if 2Checkout Payment Gateway plugin is installed
    Check the WordPress plugins directory at wp-content/plugins/ for a folder containing '2checkout' or '2Checkout' in the name. Look for the main plugin PHP file and read the plugin header for the Version field.
    Affected if The plugin folder exists and the Version header shows a version lower than 6.3, or the version cannot be determined.
  2. Locate the vulnerable sniff_ins function
    Search the plugin files for the function definition 'function sniff_ins' using grep, grep -r 'function sniff_ins' /path/to/wp-content/plugins/2checkout/, or a file search in the plugin folder.
    Affected if The function sniff_ins is found defined in the plugin files.
  3. Verify the sniff_ins function lacks authorization checks
    Open the file containing sniff_ins and examine the function code. Look for capability checks (current_user_can), nonce verification, or authentication gates before any order modification logic.
    Affected if The sniff_ins function contains order modification logic (such as updating post meta, order status, or payment status) without any current_user_can() checks or nonce validation at the function start.
  4. Check for unauthorized order status modifications
    Review WooCommerce order notes and order history in wp-admin > WooCommerce > Orders. Look for suspicious 'pending' to 'completed' or 'processing' transitions, especially in bulk or at unusual times, or query the wp_postmeta table for meta_key '_paid_date' set without corresponding payment gateway records.
    Affected if Orders show completion status changes without corresponding payment transaction records from the 2Checkout gateway.
  5. Inspect server access logs for exploit attempts
    Search web server access logs (Apache, Nginx) for requests to the plugin endpoint containing 'sniff_ins', '2checkout', or order ID parameters from unauthenticated IP addresses. Example: grep -i 'sniff_ins' /var/log/apache2/access.log
    Affected if HTTP requests to sniff_ins or similar endpoints are logged from unauthenticated sources, especially in high volume or with sequential order IDs.

You are affected if the 2Checkout Payment Gateway plugin is installed with a version before 6.3 AND the sniff_ins function exists without authorization checks in the code, or if you find evidence of orders marked as paid without valid payment transactions.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Update to version 6.3 or later when available; until then, consider restricting access to the vulnerable endpoint via server-side rules or deploying a WAF rule to block unauthorized order modification requests.

Recommended fix Moderate confidence

latest available version (after 6.2)

  1. Log in to the WordPress admin dashboard
  2. Navigate to Plugins > Installed Plugins
  3. Locate the '2Checkout Payment Gateway for WooCommerce' plugin
  4. Check if an update is available and update to the latest version
  5. Alternatively, navigate to Dashboard > Updates and update the plugin from there

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation3.0 h
  • Implementation2.0 h
  • Testing3.0 h
  • Review / QA2.0 h
10.0 hours of engineering $1,770
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,832.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2024-0629 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2024-0629 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data