[wp-trac] [WordPress Trac] #5272: WordPress allows anonymous user to see slug for private post by guessing post number
WordPress Trac
noreply at wordpress.org
Sat Aug 15 05:45:54 UTC 2020
#5272: WordPress allows anonymous user to see slug for private post by guessing
post number
-------------------------------------------------+-------------------------
Reporter: tzafrir | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 5.6
Component: Security | Version: 2.3.1
Severity: normal | Resolution:
Keywords: has-patch needs-testing has-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Comment (by peterwilsoncc):
As the friendly bot points out, I've pushed a PR to
https://github.com/WordPress/wordpress-develop/pull/479
@TimothyBlynJacobs I've included a check for `get_post_status_object(
$redirect_obj->post_status )->public`, do you think I should logic check
for `private` or `internal` too?
@SergeyBiryukov I included some tests for comment feed requests but was
getting some unexpected results with `?name=slug&feed=rss2` style requests
that I think are unrelated to this ticket. Do you know if they work?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/5272#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list