Unauthenticated private CSV export of Meetup organizer PII via broken authz check in WordCamp Reports
An inverted authorization check in the WordCamp Reports plugin used a logical AND instead of OR between nonce verification and a capability check, so the export was only blocked when both checks failed. An unauthenticated attacker could therefore export a private CSV containing Meetup organizer personal data such as emails, addresses and Slack handles.
- Fixed in 13 days
- Paid in 13 days
- Disclosed after 4 months
Summary by the researcher
An inverted authorization check in WordCamp Reports (Meetup_Details::export_to_file()) used && instead of || between nonce verification and the view_wordcamp_reports capability check. Unauthenticated requests with an invalid nonce could export a private CSV of Meetup organizer fields (public => false).
The report
Summary
Broken authorization check in the WordCamp Reports plugin allows an unauthenticated attacker to export a private CSV containing Meetup organizer PII (email, postal address, Slack handles, usernames, notes) from central.wordcamp.org.
The bug is a logic error in Meetup_Details::export_to_file(): the security gate uses && instead of ||, so the export is blocked only when the request has an invalid nonce AND the user already has the privileged capability. Unauthenticated / low-privilege users therefore pass the check.
This is not by design. Sibling report classes in the same plugin correctly require both a valid nonce and the view_wordcamp_reports capability. The export intentionally sets 'public' => false to include private organizer fields.
Affected Asset / Component
- Program asset: WordCamp.org
- Host: https://central.wordcamp.org
- Component: wordcamp-reports plugin
- File: public_html/wp-content/plugins/wordcamp-reports/classes/report/class-meetup-details.php
- Function: Meetup_Details::export_to_file() (hooked to admin_init)
- Intended capability: view_wordcamp_reports
Vulnerable Code
Broken check in class-meetup-details.php:
if ( ! wp_verify_nonce( $nonce, 'run-report' ) && current_user_can( CAPABILITY ) ) { return; }
$options = array( 'fields' => $fields, 'public' => false, // includes private organizer fields );
Correct pattern used by sibling reports (example: class-meetup-sponsors.php):
if ( ! wp_verify_nonce( $nonce, 'run-report' ) || ! current_user_can( CAPABILITY ) ) { return; }
Truth table of the broken condition
| Nonce valid | Has view_wordcamp_reports | Early return? | Export proceeds? |
|---|---|---|---|
| No | No (anonymous) | No | Yes (vulnerable) |
| No | Yes | Yes | No |
| Yes | No | No | Yes (vulnerable) |
| Yes | Yes | No | Yes (intended) |
Only privileged users with a bad nonce are blocked. Everyone else, including unauthenticated attackers, can trigger the private CSV export.
Private fields available when 'public' => false include organizer meta such as Email, Address, Slack, Organizer Name, Extra Comments, WordPress.org usernames, etc. (get_private_data_fields() + Meetup_Admin::meta_keys('organizer')).
The plugin documentation explicitly states private data must not be exposed publicly.
Steps To Reproduce
Preconditions: None. No authentication required.
- As an unauthenticated user (incognito / no cookies), send a POST request to WordCamp Central admin that fires admin_init (for example admin-ajax.php):
POST /wp-admin/admin-ajax.php HTTP/1.1 Host: central.wordcamp.org Content-Type: application/x-www-form-urlencoded
action=Export%20CSV&meetup-details-nonce=invalid&fields%5B%5D=Email&fields%5B%5D=Address&fields%5B%5D=Slack&fields%5B%5D=Organizer%20Name&fields%5B%5D=Extra%20Comments&fields%5B%5D=Name
Example curl (use only for minimal confirmation; do not mass-exfiltrate data):
curl -i -X POST 'https://central.wordcamp.org/wp-admin/admin-ajax.php'
-H 'Content-Type: application/x-www-form-urlencoded'
--data-urlencode 'action=Export CSV'
--data-urlencode 'meetup-details-nonce=invalid'
--data-urlencode 'fields[]=Email'
--data-urlencode 'fields[]=Address'
--data-urlencode 'fields[]=Slack'
--data-urlencode 'fields[]=Organizer Name'
--data-urlencode 'fields[]=Name'
-
Observe that the broken check does not return early for an unauthenticated requester with an invalid nonce.
-
Observe the response is a CSV download generated by export_to_file_common() containing private organizer fields (not limited to public report fields).
-
Control comparison (proves intent): repeat the same request pattern against another report export in the same plugin that uses the correct || check (for example Meetup Sponsors). That export should refuse unauthenticated requests. Only Meetup Details is broken.
-
Optional code confirmation: in the public repo WordPress/wordcamp.org (branch production), inspect class-meetup-details.php around the export_to_file() nonce/capability check and compare with class-meetup-sponsors.php.
Recommendations
Replace the inverted condition with the same pattern used by sibling reports:
if ( ! wp_verify_nonce( $nonce, 'run-report' ) || ! current_user_can( CAPABILITY ) ) { return; }
Also recommended:
- Audit all export_to_file() handlers in wordcamp-reports for the same operator mistake.
- Prefer fail-closed helpers (for example early current_user_can + check_admin_referer / wp_die on failure).
- Add a regression test: unauthenticated POST with action=Export CSV must not emit CSV content.
Impact
Unauthenticated attackers can download a private CSV containing Meetup organizer personally identifiable information (emails, physical addresses, Slack handles, WordPress.org usernames, and free-text notes) from WordCamp Central.
This is caused by an inverted authorization check (&& instead of ||) in Meetup_Details::export_to_file(). The intended access control requires both a valid nonce and the view_wordcamp_reports capability, but the broken condition allows anonymous users with an invalid nonce to bypass both checks.
Impact:
- Confidentiality breach of volunteer/organizer PII managed by WordCamp.org
- No authentication required
- No valid nonce required
- Low attack complexity (single HTTP POST)
- Potential CSRF abuse against browsers that can reach wp-admin
- Violates the plugin's own private/public data separation model ('public' => false exports)
Context
WordCamp Central (central.wordcamp.org) runs the WordPress.org WordCamp programme. Among its plugins is wordcamp-reports, which generates reports about WordCamps and their Meetup groups. One of those reports, Meetup Details, can be exported to a CSV file through Meetup_Details::export_to_file(), a handler hooked to admin_init.
The export is deliberately built to include private organizer data. The options passed to the export set 'public' => false, which pulls in organizer meta fields such as Email, Address, Slack, Organizer Name, Extra Comments and WordPress.org usernames, sourced through get_private_data_fields() and Meetup_Admin::meta_keys('organizer'). The plugin documentation states explicitly that private data must not be exposed publicly.
Access to the report is meant to be gated by two things: a valid nonce for the run-report action, and the view_wordcamp_reports capability. Sibling report classes in the same plugin, such as class-meetup-sponsors.php, enforce both.
Setup
No account, role or tooling is required. The researcher states the preconditions as none: no authentication is needed. The only things used are an HTTP client (the report shows both a raw request and a curl equivalent) and, optionally, a browser in incognito mode with no cookies. For the code-level confirmation, the public repository WordPress/wordcamp.org on the production branch is referenced.
The affected component is identified as:
- Host:
https://central.wordcamp.org - Plugin:
wordcamp-reports - File:
public_html/wp-content/plugins/wordcamp-reports/classes/report/class-meetup-details.php - Function:
Meetup_Details::export_to_file(), hooked toadmin_init - Intended capability:
view_wordcamp_reports
Finding it
The researcher found a logic error in the security gate of export_to_file(). The condition combines nonce verification and the capability check with && instead of ||:
if ( ! wp_verify_nonce( $nonce, 'run-report' ) && current_user_can( CAPABILITY ) ) {
return;
}
$options = array(
'fields' => $fields,
'public' => false, // includes private organizer fields
);
Read literally, the handler returns early only when the nonce is invalid and the current user already holds the privileged capability. That inverts the intent. The correct pattern, as used by sibling reports, is shown in class-meetup-sponsors.php:
if ( ! wp_verify_nonce( $nonce, 'run-report' ) || ! current_user_can( CAPABILITY ) ) {
return;
}
With ||, either a bad nonce or a missing capability stops the request. The researcher lays out the difference as a truth table:
| Nonce valid | Has view_wordcamp_reports | Early return? | Export proceeds? |
|---|---|---|---|
| No | No (anonymous) | No | Yes (vulnerable) |
| No | Yes | Yes | No |
| Yes | No | No | Yes (vulnerable) |
| Yes | Yes | No | Yes (intended) |
Only a privileged user presenting a bad nonce is blocked. Everyone else, including an unauthenticated attacker, reaches the export. The researcher also notes that this is not by design: the sibling report classes require both a valid nonce and the capability, and the export intentionally sets 'public' => false so that private organizer fields are included.
Exploitation
Step 1: Send an unauthenticated POST that fires admin_init
As an unauthenticated user (incognito, no cookies), send a POST to a WordCamp Central admin endpoint that fires admin_init, for example admin-ajax.php:
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: central.wordcamp.org
Content-Type: application/x-www-form-urlencoded
action=Export%20CSV&meetup-details-nonce=invalid&fields%5B%5D=Email&fields%5B%5D=Address&fields%5B%5D=Slack&fields%5B%5D=Organizer%20Name&fields%5B%5D=Extra%20Comments&fields%5B%5D=Name
The action parameter carries the value Export CSV. meetup-details-nonce is deliberately set to invalid, so nonce verification fails. The fields[] parameters select the columns to export: Email, Address, Slack, Organizer Name, Extra Comments and Name. Because the nonce is invalid and the requester is anonymous, the broken && condition evaluates to false and the early return is skipped.
The same request as a curl command, which the report labels for minimal confirmation only, with a warning not to mass-exfiltrate data:
curl -i -X POST 'https://central.wordcamp.org/wp-admin/admin-ajax.php' \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'action=Export CSV' \
--data-urlencode 'meetup-details-nonce=invalid' \
--data-urlencode 'fields[]=Email' \
--data-urlencode 'fields[]=Address' \
--data-urlencode 'fields[]=Slack' \
--data-urlencode 'fields[]=Organizer Name' \
--data-urlencode 'fields[]=Name'
Step 2: Observe that the check does not return early
The broken check does not return early for an unauthenticated requester with an invalid nonce. The request continues into the export logic.
Step 3: Observe the CSV response
The response is a CSV download generated by export_to_file_common(), containing private organizer fields rather than being limited to the public report fields.
Step 4: Control comparison against a correctly written report
To show intent, repeat the same request pattern against another report export in the same plugin that uses the correct || check, for example Meetup Sponsors. That export should refuse unauthenticated requests. Only Meetup Details is broken.
Step 5: Optional code confirmation
In the public repository WordPress/wordcamp.org on the production branch, inspect class-meetup-details.php around the export_to_file() nonce and capability check and compare it with class-meetup-sponsors.php.
Root cause
The defect is a single boolean operator. The guard was written as ! wp_verify_nonce( $nonce, 'run-report' ) && current_user_can( CAPABILITY ) when it should have been ! wp_verify_nonce( $nonce, 'run-report' ) || ! current_user_can( CAPABILITY ). With &&, the two failure conditions have to hold together before the handler bails out, so a request that fails only one of them, or both in the anonymous case, proceeds.
The existing defences did not stop this because the nonce check and the capability check were both folded into the same inverted expression. The nonce was still verified, and the capability was still queried, but the combination of the two results was wrong. The sibling reports in the same plugin use the correct form, which is why the researcher treats the && as a mistake rather than a design choice. The export itself is also configured with 'public' => false, so once the guard is passed the private organizer fields are included by design.
Impact
An unauthenticated attacker can download a private CSV containing Meetup organizer personally identifiable information from WordCamp Central: emails, physical addresses, Slack handles, WordPress.org usernames and free-text notes. The researcher characterises this as a confidentiality breach of volunteer and organizer PII managed by WordCamp.org.
The conditions are minimal: no authentication and no valid nonce are required, and the attack complexity is low, a single HTTP POST. The report also notes potential CSRF abuse against browsers that can reach wp-admin. The exposure violates the plugin's own private/public data separation model, since the export is built with 'public' => false.
Fix
Replace the inverted condition with the same pattern used by sibling reports:
if ( ! wp_verify_nonce( $nonce, 'run-report' ) || ! current_user_can( CAPABILITY ) ) {
return;
}
The researcher also recommends:
- Audit all
export_to_file()handlers inwordcamp-reportsfor the same operator mistake. - Prefer fail-closed helpers, for example an early
current_user_canpluscheck_admin_refererorwp_dieon failure. - Add a regression test: an unauthenticated POST with
action=Export CSVmust not emit CSV content.
Variants to test
- Other report exports in the same plugin. Apply the same unauthenticated POST with an invalid nonce to each
export_to_file()handler. A positive result is a CSV response instead of a refusal, which would indicate the same operator mistake elsewhere. - Other plugins with combined nonce and capability guards. Look for conditions that join
wp_verify_nonceandcurrent_user_canwith&&. A positive result is a handler that proceeds when either check fails on its own. - Low-privilege accounts. The truth table shows that a valid nonce with no capability also proceeds. A positive result is an authenticated low-privilege user obtaining data that requires
view_wordcamp_reports. - CSRF-style delivery. Because the report notes potential CSRF abuse against browsers that can reach
wp-admin, test whether a privileged browser can be made to issue the export request. A positive result is a private CSV produced from a request the victim did not intend to make.
Hunting notes
This kind of bug hides in report and export handlers: code paths that produce files, are hooked to admin_init or admin-ajax.php, and combine a nonce with a capability check. The signal during recon is a plugin that has several similar report classes; comparing them side by side makes an inconsistent guard stand out, which is exactly how the researcher framed the finding, with class-meetup-sponsors.php as the correct reference against class-meetup-details.php.
A second signal is an export explicitly configured to include private fields, such as 'public' => false. That tells you the data behind the guard is worth having, so a guard mistake has real impact rather than exposing already-public report columns.
The report sets out the full chain: the inverted condition, a truth table, an unauthenticated request with an invalid nonce, the expected CSV response with private organizer fields, and a control comparison against a correctly written sibling report. The report also ties the exposure to the plugin's own documentation, which states that private data must not be exposed publicly.
What happened, in plain words
WordCamp Central is the website that runs the WordPress.org WordCamp programme, the events where people learn about WordPress. The site uses a plugin called wordcamp-reports, and that plugin builds reports about WordCamps and their Meetup groups. A plugin is an add-on piece of software that gives a website extra features, a bit like an app on a phone.
One of those reports is called Meetup Details. It can be downloaded as a CSV file. CSV stands for comma-separated values: a plain text file where each line is a row and commas separate the columns, which is what spreadsheet programs like Excel or LibreOffice open. Think of it as a simple table saved as text.
The download is handled by a piece of code called Meetup_Details::export_to_file(). The name is written in a style used by the PHP programming language, which WordPress is built on: Meetup_Details is the class (a bundle of related code) and export_to_file() is the function (one specific action inside it). This function is attached to something called admin_init, which is a hook. A hook is a named moment in WordPress's startup where plugins can say "run my code here". admin_init is a hook that fires early in the admin area of the site, and the function is attached to it.
The export is deliberately built to include private data about Meetup organisers. The code passes an option 'public' => false, which tells the export to include organiser fields such as Email, Address, Slack, Organizer Name, Extra Comments and WordPress.org usernames. These come from two helpers, get_private_data_fields() and Meetup_Admin::meta_keys('organizer'). The plugin's own documentation says private data must not be exposed publicly.
Access to the report is supposed to be gated by two things. The first is a nonce. A nonce (short for "number used once") is a random value the site hands to a logged-in user's browser and expects back with the next request, so the site can tell the request came from its own pages and not from somewhere else. The second is a capability. A capability is a permission flag attached to a user account, here view_wordcamp_reports, which says "this person is allowed to view WordCamp reports".
Other report classes in the same plugin, such as class-meetup-sponsors.php, enforce both checks. Meetup Details does not, because of a single wrong symbol in its security check. The result: anyone on the internet, with no account and no valid nonce, passes the check and reaches the private CSV export.
Context
WordCamp Central lives at central.wordcamp.org. Among its plugins is wordcamp-reports, which generates reports about WordCamps and their Meetup groups. One of those reports, Meetup Details, can be exported to a CSV file through Meetup_Details::export_to_file(), a handler hooked to admin_init.
The export is deliberately built to include private organiser data. The options passed to the export set 'public' => false, which pulls in organiser meta fields such as Email, Address, Slack, Organizer Name, Extra Comments and WordPress.org usernames, sourced through get_private_data_fields() and Meetup_Admin::meta_keys('organizer'). "Meta" here means extra information stored alongside a record, the way a contact card has fields beyond a name. The plugin documentation states explicitly that private data must not be exposed publicly.
Access to the report is meant to be gated by two things: a valid nonce for the run-report action, and the view_wordcamp_reports capability. Sibling report classes in the same plugin, such as class-meetup-sponsors.php, enforce both.
Setup
No account, role or tooling is required. The researcher states the preconditions as none: no authentication is needed. Authentication means proving who you are, usually by logging in. Here the attacker does not have to.
The only things used are an HTTP client and, optionally, a browser in incognito mode with no cookies. An HTTP client is any program that sends web requests: a browser is one, and curl is a command-line one. HTTP is the language browsers and servers use to exchange pages and data. A cookie is a small piece of data a site stores in your browser so it can recognise you on the next request; incognito mode starts with no cookies, which makes it a clean way to act like a stranger. The report shows both a raw request and a curl equivalent. For the code-level confirmation, the public repository WordPress/wordcamp.org on the production branch is referenced. A repository is a project's stored collection of code, and a branch is a named line of development inside it.
The affected component is identified as:
- Host:
https://central.wordcamp.org - Plugin:
wordcamp-reports - File:
public_html/wp-content/plugins/wordcamp-reports/classes/report/class-meetup-details.php - Function:
Meetup_Details::export_to_file(), hooked toadmin_init - Intended capability:
view_wordcamp_reports
Finding it
The researcher found a logic error in the security gate of export_to_file(). The condition combines nonce verification and the capability check with && instead of ||:
if ( ! wp_verify_nonce( $nonce, 'run-report' ) && current_user_can( CAPABILITY ) ) {
return;
}
$options = array(
'fields' => $fields,
'public' => false, // includes private organizer fields
);
Line by line:
if ( ... ) {starts a decision: if what is inside the brackets is true, run the code inside the braces.! wp_verify_nonce( $nonce, 'run-report' )asks the site to check the nonce against the action namerun-report. The!means "not", so this part is true when the nonce is invalid.&&means "and": both sides must be true for the whole thing to be true.current_user_can( CAPABILITY )asks whether the current user holds the required permission. It is true when the user is privileged.return;stops the function immediately, so nothing after it runs.- The
$optionsarray then sets'public' => false, which is what makes the export include private organiser fields.
Read literally, the handler returns early only when the nonce is invalid and the current user already holds the privileged capability. That inverts the intent. The correct pattern, as used by sibling reports, is shown in class-meetup-sponsors.php:
if ( ! wp_verify_nonce( $nonce, 'run-report' ) || ! current_user_can( CAPABILITY ) ) {
return;
}
Here || means "or": if either side is true, the whole condition is true. So either a bad nonce or a missing capability stops the request. The second ! matters too: without it, the check would pass for users who do have the capability, which is the opposite of what is wanted.
The researcher lays out the difference as a truth table. A truth table simply lists every combination of inputs and the result:
| Nonce valid | Has view_wordcamp_reports | Early return? | Export proceeds? |
|---|---|---|---|
| No | No (anonymous) | No | Yes (vulnerable) |
| No | Yes | Yes | No |
| Yes | No | No | Yes (vulnerable) |
| Yes | Yes | No | Yes (intended) |
Only a privileged user presenting a bad nonce is blocked. Everyone else, including an unauthenticated attacker, reaches the export. The researcher also notes that this is not by design: the sibling report classes require both a valid nonce and the capability, and the export intentionally sets 'public' => false so that private organiser fields are included.
Exploitation
Step 1: Send an unauthenticated POST that fires admin_init
As an unauthenticated user (incognito, no cookies), send a POST to a WordCamp Central admin endpoint that fires admin_init, for example admin-ajax.php. POST is one of the HTTP methods; it carries data in the request body rather than in the URL, which is how forms usually submit. An endpoint is a specific address on a server that accepts requests. admin-ajax.php is a standard WordPress file that routes AJAX requests to registered action handlers.
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: central.wordcamp.org
Content-Type: application/x-www-form-urlencoded
action=Export%20CSV&meetup-details-nonce=invalid&fields%5B%5D=Email&fields%5B%5D=Address&fields%5B%5D=Slack&fields%5B%5D=Organizer%20Name&fields%5B%5D=Extra%20Comments&fields%5B%5D=Name
Line by line:
POST /wp-admin/admin-ajax.php HTTP/1.1is the request line: the method, the path on the server, and the HTTP version.Host: central.wordcamp.orgnames the site being contacted.Content-Type: application/x-www-form-urlencodedsays the body is formatted like a web form, withkey=valuepairs joined by&.- The blank line separates the headers from the body.
action=Export%20CSVis the parameter that tells the handler what to do.%20is the encoded form of a space, so the value isExport CSV.meetup-details-nonce=invalidis deliberately set toinvalid, so nonce verification fails.fields%5B%5D=Emailand the followingfields%5B%5D=...entries select the columns to export.%5B%5Dis the encoded form of[], so the parameter name isfields[], which tells PHP to collect the values into a list. The values are Email, Address, Slack, Organizer Name, Extra Comments and Name.
Because the nonce is invalid and the requester is anonymous, the broken && condition evaluates to false and the early return is skipped.
The same request as a curl command, which the report labels for minimal confirmation only, with a warning not to mass-exfiltrate data. Exfiltration means copying data out in bulk; the point here is to prove the door is open, not to empty the room.
curl -i -X POST 'https://central.wordcamp.org/wp-admin/admin-ajax.php' \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'action=Export CSV' \
--data-urlencode 'meetup-details-nonce=invalid' \
--data-urlencode 'fields[]=Email' \
--data-urlencode 'fields[]=Address' \
--data-urlencode 'fields[]=Slack' \
--data-urlencode 'fields[]=Organizer Name' \
--data-urlencode 'fields[]=Extra Comments' \
--data-urlencode 'fields[]=Name'
Line by line:
curlis the command-line HTTP client.-iasks curl to show the response headers as well as the body, so you can see what kind of file came back.-X POSTsets the method to POST.- The quoted URL is the endpoint.
- Each
-Hadds a header; here it sets the content type to form encoding. - Each
--data-urlencodeadds one body parameter and encodes it safely, so spaces and brackets do not break the request. The backslash at the end of a line means "the command continues on the next line".
Step 2: Observe that the check does not return early
The broken check does not return early for an unauthenticated requester with an invalid nonce. The request continues into the export logic. In everyday terms: the guard at the door was supposed to stop anyone without a pass and without a badge, but it was written to stop only people who had no pass and already had a badge, which describes almost nobody.
Step 3: Observe the CSV response
The response is a CSV download generated by export_to_file_common(), containing private organiser fields rather than being limited to the public report fields. The expected result: the file that comes back holds the private columns, not just the ones meant for public viewing.
Step 4: Control comparison against a correctly written report
To show intent, repeat the same request pattern against another report export in the same plugin that uses the correct || check, for example Meetup Sponsors. That export should refuse unauthenticated requests. Only Meetup Details is broken. A control comparison is the same idea as a science experiment's control group: you change one thing and check that the other case behaves as expected, which shows the difference is a mistake and not how the software is meant to work.
Step 5: Optional code confirmation
In the public repository WordPress/wordcamp.org on the production branch, inspect class-meetup-details.php around the export_to_file() nonce and capability check and compare it with class-meetup-sponsors.php. Reading the two side by side is the simplest way to see the one-symbol difference.
Root cause
The defect is a single boolean operator. A boolean is a value that is either true or false, and an operator is a symbol that combines such values. The guard was written as ! wp_verify_nonce( $nonce, 'run-report' ) && current_user_can( CAPABILITY ) when it should have been ! wp_verify_nonce( $nonce, 'run-report' ) || ! current_user_can( CAPABILITY ). With &&, the two failure conditions have to hold together before the handler bails out, so a request that fails only one of them, or both in the anonymous case, proceeds.
The existing defences did not stop this because the nonce check and the capability check were both folded into the same inverted expression. The nonce was still verified, and the capability was still queried, but the combination of the two results was wrong. The sibling reports in the same plugin use the correct form, which is why the researcher treats the && as a mistake rather than a design choice. The export itself is also configured with 'public' => false, so once the guard is passed the private organiser fields are included by design.
Impact
An unauthenticated attacker can download a private CSV containing Meetup organiser personally identifiable information from WordCamp Central: emails, physical addresses, Slack handles, WordPress.org usernames and free-text notes. Personally identifiable information, or PII, is any data that can identify a real person. The researcher characterises this as a confidentiality breach of volunteer and organiser PII managed by WordCamp.org. Confidentiality here means keeping data away from people who should not see it.
The conditions are minimal: no authentication and no valid nonce are required, and the attack complexity is low, a single HTTP POST. The report also notes potential CSRF abuse against browsers that can reach wp-admin. CSRF, cross-site request forgery, is when a malicious page makes a logged-in user's browser send a request the user did not intend; the browser carries the user's cookies automatically, so the site may treat the request as legitimate. The exposure violates the plugin's own private/public data separation model, since the export is built with 'public' => false.
Fix
Replace the inverted condition with the same pattern used by sibling reports:
if ( ! wp_verify_nonce( $nonce, 'run-report' ) || ! current_user_can( CAPABILITY ) ) {
return;
}
With this version, a bad nonce alone stops the request, and a missing capability alone stops it too. The researcher also recommends:
- Audit all
export_to_file()handlers inwordcamp-reportsfor the same operator mistake. An audit means checking each one deliberately rather than assuming. - Prefer fail-closed helpers, for example an early
current_user_canpluscheck_admin_refererorwp_dieon failure. Fail-closed means that when something is uncertain, the safe outcome (refuse) wins, like a door that stays locked when the badge reader errors. - Add a regression test: an unauthenticated POST with
action=Export CSVmust not emit CSV content. A regression test is an automated check that the same bug has not come back.
Variants to test
- Other report exports in the same plugin. Apply the same unauthenticated POST with an invalid nonce to each
export_to_file()handler. A positive result is a CSV response instead of a refusal, which would indicate the same operator mistake elsewhere. - Other plugins with combined nonce and capability guards. Look for conditions that join
wp_verify_nonceandcurrent_user_canwith&&. A positive result is a handler that proceeds when either check fails on its own. - Low-privilege accounts. The truth table shows that a valid nonce with no capability also proceeds. A positive result is an authenticated low-privilege user obtaining data that requires
view_wordcamp_reports. - CSRF-style delivery. Because the report notes potential CSRF abuse against browsers that can reach
wp-admin, test whether a privileged browser can be made to issue the export request. A positive result is a private CSV produced from a request the victim did not intend to make.
Hunting notes
This kind of bug hides in report and export handlers: code paths that produce files, are hooked to admin_init or admin-ajax.php, and combine a nonce with a capability check. The signal during recon is a plugin that has several similar report classes; comparing them side by side makes an inconsistent guard stand out, which is exactly how the researcher framed the finding, with class-meetup-sponsors.php as the correct reference against class-meetup-details.php. Recon, short for reconnaissance, means looking around a target before testing anything.
A second signal is an export explicitly configured to include private fields, such as 'public' => false. That tells you the data behind the guard is worth having, so a guard mistake has real impact rather than exposing already-public report columns.
The report sets out the full chain: the inverted condition, a truth table, an unauthenticated request with an invalid nonce, the expected CSV response with private organiser fields, and a control comparison against a correctly written sibling report. The report also ties the exposure to the plugin's own documentation, which states that private data must not be exposed publicly.
Glossary
- admin_init: a WordPress hook that fires early when the admin area is reached; plugins attach code to it so that code runs on those requests.
- admin-ajax.php: a standard WordPress file that receives requests and passes them to plugin code.
- Authentication: proving who you are, usually by logging in.
- Boolean: a value that is either true or false.
- Branch: a named line of development inside a code repository.
- Capability: a permission flag on a user account, here
view_wordcamp_reports, that allows a specific action. - Class: a bundle of related code in PHP;
Meetup_Detailsis one. - Confidentiality: keeping data away from people who should not see it.
- Cookie: a small piece of data a site stores in your browser so it can recognise you on later requests.
- CSRF (cross-site request forgery): a malicious page making a logged-in user's browser send a request the user did not intend.
- CSV (comma-separated values): a plain text file where lines are rows and commas separate columns, openable in spreadsheet programs.
- curl: a command-line program that sends HTTP requests.
- Endpoint: a specific address on a server that accepts requests.
- Exfiltration: copying data out in bulk.
- Fail-closed: when in doubt, refuse; the safe outcome wins.
- Function: one specific action inside a class, such as
export_to_file(). - Hook: a named moment in WordPress's startup where plugins can attach their code.
- Host: the site being contacted, named in the
Hostheader. - HTTP: the language browsers and servers use to exchange pages and data.
- HTTP client: any program that sends web requests, such as a browser or curl.
- Meta: extra information stored alongside a record, like the fields on a contact card.
- Nonce: a random value the site hands to a browser and expects back, used to confirm a request came from its own pages.
- Operator: a symbol that combines values, such as
&&(and) or||(or). - Parameter: a
key=valuepair sent with a request. - PHP: the programming language WordPress is built on.
- PII (personally identifiable information): any data that can identify a real person.
- Plugin: an add-on piece of software that gives a website extra features.
- POST: an HTTP method that carries data in the request body, as forms usually do.
- Recon (reconnaissance): looking around a target before testing anything.
- Regression test: an automated check that a fixed bug has not come back.
- Repository: a project's stored collection of code.
- Truth table: a table listing every combination of inputs and the resulting outcome.
- URL encoding: replacing characters such as spaces and brackets with
%codes so they travel safely in a request;%20is a space and%5B%5Dis[].