AndyB
Well-known member
- Affected version
- XF 2.1.0
no. If you type in a url, that actually performs a search (e.g. https://xenforo.com/community/search/search?keywords=test ), then the permissions are checked as they should.However I can still do a search from the address bar in my browser.
1
). Don't know if that is a desired behavior.If you try it exactly as Andy described, you will see that it is indeed an issue. Anyone can craft the URL as he described. Your example is different.no. If you type in a url, that actually performs a search (e.g. https://xenforo.com/community/search/search?keywords=test ), then the permissions are checked as they should.
read my post again carefully. The link i have posted performs a search - and respects permissions. The link Andy has posted is just a (cached) search result. After you perform a search you get redirected to such a link. And these link are really accessible for everyone. As I said: I don't know if that's a desired XF behavior.If you try it exactly as Andy described, you will see that it is indeed an issue. Anyone can craft the URL as he described. Your example is different.
agree, there's the bug, at minimum. I'm not sure exactly how it is working, but I know I tested on my site and key-smashed a few digits for the result ID, and used a fairly generic term (though not entirely uncommon for my niche), and got the results output. Should get the "oops" and login bit.
- If the search result ID does not exist, a new search is performed and in that case search permissions are not followed -> this seems to be the bug.
Any changes made as a result of this issue being resolved may not be rolled out here until later.Ensure a permission check happens at the point of running a search.
We use essential cookies to make this site work, and optional cookies to enhance your experience.