Bug 2273662 (CVE-2023-5692)

Summary: CVE-2023-5692 wordpress: potential exposure of custom post slugs whose 'publicly_queryable' post status has been set to 'false'
Product: [Other] Security Response Reporter: Robb Gatica <rgatica>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2273663, 2273664    
Bug Blocks:    

Description Robb Gatica 2024-04-05 13:54:28 UTC
WordPress Core is vulnerable to Sensitive Information Exposure in versions up to, and including,  6.4.3 via the redirect_guess_404_permalink function. This can allow unauthenticated attackers to expose the slug of a custom post whose 'publicly_queryable' post status has been set to 'false'.

https://core.trac.wordpress.org/changeset/57645
https://developer.wordpress.org/reference/functions/is_post_publicly_viewable/
https://developer.wordpress.org/reference/functions/is_post_type_viewable/
https://github.com/WordPress/wordpress-develop/blob/6.3/src/wp-includes/canonical.php#L763
https://www.wordfence.com/threat-intel/vulnerabilities/id/6e6f993b-ce09-4050-84a1-cbe9953f36b1?source=cve

Comment 1 Robb Gatica 2024-04-05 13:54:48 UTC
Created wordpress tracking bugs for this issue:

Affects: epel-all [bug 2273663]
Affects: fedora-all [bug 2273664]