Descrizione
@grpc/grpc-js implements the core functionality of gRPC purely in JavaScript, without a C++ addon. Prior to 1.13.1 and 1.14.1, the exact path (method name) matcher used by RBAC performs a prefix comparison instead of an equality comparison when case-insensitive matching is enabled. If one service method name prefixes another and the methods have different access rules, a request for the longer method can match the shorter method's rule and cause incorrect authorization. This issue is fixed in versions 1.13.1 and 1.14.1.
Tipo di vulnerabilità
CWE-187
Partial String Comparison
The product performs a string comparison that only examines a portion of the string before determining whether there is a match.
Impatto sui sistemi
| Ambito | Impatto |
| Integrità, Controllo degli accessi |
Alterare la logica di esecuzione, Aggirare i meccanismi di protezione |
Come si previene
Test
Thoroughly test the comparison scheme before deploying code into production. Perform positive testing as well as negative testing.
Tutte le 19 CVE di tipo CWE-187, con andamento e prevenzione