Make WordPress Core

Opened 22 years ago

Closed 22 years ago

Last modified 2 years ago

#101 closed defect (bug) (fixed)

Security Breach: Editing off others posts with Level 1

Reported by: anonymousbugger Owned by: michel v
Priority: normal Milestone:
Component: General Version: 1.2
Severity: major Keywords:
Cc: Focuses:

Description

If there are several users set to level one they can edit all posts by every user at this level. On the blog there is always the "edit this" link and administration doesn't validate too.

Change History (7)

#2 @anonymousbugger
22 years ago

I have fixed it with adding something like:

if (($user_level == 1
$user_level == 2) && ($authordata->ID != $user_ID ))

return / die;

to wp-includes/template-functions-links.php function function edit_post_link and to file wp-admin/post.php in the edit-part.

#3 @michel v
22 years ago

  • Owner changed from anonymous to michel v
  • Resolution 1020
  • Status newclosed

This ticket was mentioned in Slack in #forums by ipstenu. View the logs.


12 years ago

This ticket was mentioned in Slack in #forums by ipstenu. View the logs.


12 years ago

This ticket was mentioned in Slack in #core-themes by netweb. View the logs.


7 years ago

Note: See TracTickets for help on using tickets.