Fossil SCM

checkin/db14caf5712c7e069d703d02ba02a82959cee2122d2b88e34b4e7d0bde70429c

5 days, 14 hours ago by dmestas

/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.

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button