Skip to content
Fossil Update of ”checkin/db14caf5712c7e069d703d02ba02a82959cee2122d2b88e34b4e7d0bde70429c”
Login

Update of ”checkin/db14caf5712c7e069d703d02ba02a82959cee2122d2b88e34b4e7d0bde70429c”

Overview

Artifact ID: 1698dc5c84a0bfcfdb0aa190b4bd58d921298b5cfc9a719e33924c5f993b88f4
Page Name:checkin/db14caf5712c7e069d703d02ba02a82959cee2122d2b88e34b4e7d0bde70429c
Date: 2026-11-22 15:53:30
Original User: dmestas
Mimetype:text/x-markdown
Content

/ambiguous checked no permission

ambiguous_page() in src/name.c lists the artifacts whose hash begins with a given prefix, each with its description: file names, check-in comments, users, dates, branches, and ticket and technote titles, private check-ins included. It made no login check, so on a repository closed to anonymous users anyone could list its contents, sixteen requests in all. File contents were not shown.

The fix requires Read, as /bloblist does. 01b165a2d8 then lists matching tickets only for users with RdTkt and technotes only for users with RdWiki, as the pages that show them require.

Tested with ASan and UBSan on macOS, with each set of capabilities: without Read the page now sends the visitor to the login page; with Read it lists the artifacts as before; ticket and technote rows appear only with those capabilities. Links to /ambiguous from /info and the forum still work. The tests are in test/name.test, which will come with the test-suite work. Not run on Linux or Windows.