In @neo4j/graphql versions from 7.0.0 up to but not including 7.6.4, the none quantifier in @authorization filters on relationships and connections is not negated when translated to Cypher, so it behaves like some. Правило, такое как «ни один из связанных запрещенных пользователей не соответствует субъекту JWT», поэтому возвращает именно те записи, которые он должен был исключить, и исключает те, которые он должен был вернуть. Аутентифицированный пользователь, которому такое правило предназначено для отказа, может прочитать защищенные записи.
Это также относится к мутациям, поэтому влияние заключается в том, что конфиденциальные данные также могут быть созданы и удалены пользователями, которые не должны иметь доступ в соответствии с типодефами. Исправлено в 7.6.4.
Показать оригинальное описание (EN)
In @neo4j/graphql versions from 7.0.0 up to but not including 7.6.4, the none quantifier in @authorization filters on relationships and connections is not negated when translated to Cypher, so it behaves like some. A rule such as "none of the related denied users matches the JWT subject" therefore returns exactly the records it was meant to exclude, and excludes those it was meant to return. An authenticated user whom such a rule is meant to deny can read the protected records. This is also the case for mutations, so the impact is that sensitive data could also be created and deleted by users that shouldn't have access according to the typedefs. Fixed in 7.6.4.
Характеристики атаки
Последствия
Строка CVSS v4.0