This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-0bbf4e8a-29d5-486f-8ad3-0bf53c5cb2f3 XWIKI-24211 Open

REST TagsResource.getTags wiki-wide tag listing has zero authorization

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-788b2bf9-3a7f-4b55-83e0-c77399b4033e Clément Christiaens created this issue on 11/Apr/26 14:18
 
Summary: REST TagsResource.getTags wiki-wide tag listing has zero authorization
Issue Type: cid:jira-generated-image-avatar-0bbf4e8a-29d5-486f-8ad3-0bf53c5cb2f3 Bug
Assignee: Unassigned
Created: 11/Apr/26 14:18
Priority: cid:jira-generated-image-static-major-77ba53ea-12d1-476d-9686-e2427ad90d48 Major
Reporter: Clément Christiaens
Description:

File: xwiki-platform-rest-server/src/main/java/org/xwiki/rest/internal/resources/tags/TagsResourceImpl.java:48-92

getAllTags() runs the raw HQL query:

select distinct elements(prop.list) from BaseObject as obj, DBStringListProperty as prop
 where obj.className='XWiki.TagClass' and obj.id=prop.id.id and prop.id.name='tags'

with no hidden filter and no per-tag authorization. Every distinct tag value across the entire wiki is returned, including tags that only appear on pages the user cannot see.

 

So disclosure of potential private information, customer data, etc to any guest.