mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #840] Topic Pattern *_ matches everything #592
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#592
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Joe-0237 on GitHub (Aug 18, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/840
🐞 Describe the bug
Any ACL Topic Pattern containing only underscores and stars _ * matches all topics: eg.
_*,*_,_*_*_,__*__,_*_💻 Components impacted
Server
🔮 Additional context
To reproduce:
with the default permission set to read-write
as an anonymous user
deny access to everyone for *_
ntfy access everyone *_ denyattempt to subscribe to
test@binwiederhier commented on GitHub (Aug 18, 2023):
I see. Good catch!
@binwiederhier commented on GitHub (Aug 18, 2023):
Hopefully fixed in https://github.com/binwiederhier/ntfy/pull/843
@Joe-0237 commented on GitHub (Aug 19, 2023):
E_*matches anyE*So I guess more generally sections of a patterns containing only
_and*are equivalent to*I looked at the commit, I'm impressed with the testing, and scared of SQL xD but it does look like you got it, I'm glad we could help each other.
@binwiederhier commented on GitHub (Aug 19, 2023):
As you saw it uses SQLite's wildcards, so there is not but I can do.
Yeah, ... I was not happy with this complexity-add. I am not loving the wildcard-conversion thingy...