Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.4.5
-
Fix Version/s: 4.5
-
Component/s: CiviCRM API
-
Labels:None
Description
Access to API trough rest in WordPress invoking [siteroot]/wp-content/plugins/civicrm/civicrm/extern/rest.php?... does not correctly check the permissions provided in the API key.
As an example the command: http:/[siteroot]/wp-content/plugins/civicrm/civicrm/extern/rest.php?entity=contact&action=get&json=1&key=[sitekey]&api_key=[admin user API key] return blank values when executed from a blank browser session. If the user logs in beforehand the command executes correctly.
Another check: granting anonymous WP user privileges allows the command to execute correctly.