You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By combining the findings of the #609 and #1158 issues, it's possible to trigger a 500 error if one is allowed to create users. In other words, unlike in the #1158 issue, it is not necessary to be an ADP to redefine a toString() method.
This is specific to certain method names such as toString. If, for example, xyString is used instead, then the error message is:
{"error":"BAD_INPUT","message":"Parameters were invalid","details":[{"msg":"Parameter must be a one-dimensional array of strings","param":"authority.active_roles","location":"body"},{"msg":"User role does not exist.","param":"authority.active_roles","location":"body"}]}
In other words, a client user, by placing "toString" within a POST /org/{shortname}/user API call, can interfere with the server's ability to execute this code:
(As far as I know, authority.active_roles[toString]=true fails with TypeError: val.toString is not a function whereas authority.active_roles[][toString]=true fails with TypeError: k.toString is not a function)
The text was updated successfully, but these errors were encountered:
By combining the findings of the #609 and #1158 issues, it's possible to trigger a 500 error if one is allowed to create users. In other words, unlike in the #1158 issue, it is not necessary to be an ADP to redefine a toString() method.
For example,
results in:
Alternatively, this body can be used:
This is specific to certain method names such as toString. If, for example, xyString is used instead, then the error message is:
In other words, a client user, by placing "toString" within a POST /org/{shortname}/user API call, can interfere with the server's ability to execute this code:
cve-services/src/middleware/middleware.js
Lines 428 to 435 in 8b51241
(As far as I know,
authority.active_roles[toString]=true
fails withTypeError: val.toString is not a function
whereasauthority.active_roles[][toString]=true
fails withTypeError: k.toString is not a function
)The text was updated successfully, but these errors were encountered: