#15276 closed defect (bug) (fixed)
Ability to change/delete any post's meta if current user can edit any post.
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | normal | Version: | 3.0.1 |
Component: | Security | Keywords: | has-patch |
Focuses: | Cc: |
Description
There is a flaw in the logic responsible for saving custom fields - if the current user can edit any post, he can pass a meta values for the posts which he is not allowed to edit.
Steps to reproduce:
- Open post editor
- Add some meta
- Change some meta field's ID value to some another existing meta ID.
- Click save - meta will be updated.
The cause of the problem is that when saving meta values, WP does not check if meta really belongs to the post being saved. The related code is inside the function update_meta
Attachments (1)
Note: See
TracTickets for help on using
tickets.
Validation modelled after AJAX handler