Five Star Restaurant Reservations <= 2.7.16 - Unauthenticated Payment Bypass via PHP Type Juggling in 'payment_id' Parameter

Summary

CVECVE-2026-6498
StatePUBLISHED
AssignerWordfence
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-04-30 10:16:02 UTC
Updated2026-04-30 10:16:02 UTC
DescriptionThe Five Star Restaurant Reservations plugin for WordPress is vulnerable to a payment bypass via PHP type juggling in versions up to, and including, 2.7.16 This is due to the valid_payment() function using a PHP loose comparison (==) between the attacker-controlled payment_id POST parameter and the booking's stripe_payment_intent_id property. When an unauthenticated attacker submits a request to the nopriv AJAX handler rtb_stripe_pmt_succeed before the Stripe payment intent has been created for a booking (i.e., before the JavaScript-triggered create_stripe_pmtIntnt() call has stored an intent ID in post meta), the stripe_payment_intent_id property on the booking object remains null. The comparison sanitize_text_field('') == null evaluates to TRUE in PHP loose comparison, causing the payment verification check to pass with zero actual payment. This makes it possible for unauthenticated attackers to mark any existing payment_pending booking as paid without completing a Stripe payment by submitting an empty payment_id parameter.

Risk And Classification

Primary CVSS: v3.1 5.3 MEDIUM from [email protected]

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

Problem Types: CWE-345 | CWE-345 CWE-345 Insufficient Verification of Data Authenticity


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary5.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
3.1CNADECLARED5.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
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

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Rustaurius Five Star Restaurant Reservations WordPress Booking Plugin affected 2.7.16 semver Not specified

References

ReferenceSourceLinkTags
plugins.trac.wordpress.org/changeset/3518833/restaurant-reservations/trunk/includes/Paym... [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/restaurant-reservations/tags/2.7.13/includes/PaymentG... [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/restaurant-reservations/tags/2.7.13/includes/PaymentG... [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/restaurant-reservations/trunk/includes/PaymentGateway... [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/restaurant-reservations/trunk/includes/PaymentGateway... [email protected] plugins.trac.wordpress.org
www.wordfence.com/threat-intel/vulnerabilities/id/8ee08aac-7bcc-4809-a5aa-7b95e... [email protected] www.wordfence.com
plugins.trac.wordpress.org/changeset [email protected] plugins.trac.wordpress.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: David Fernández Morilla (en)

Additional Advisory Data

SourceTimeEvent
CNA2026-04-17T09:34:05.000ZVendor Notified
CNA2026-04-29T20:28:51.000ZDisclosed
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report