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
The backend code first writes this payload to the role_key field of the sys_role table. Later, when writing to the sys_role_menu table or the casbin_rule table, it references this role_key field, which leads to a secondary (or second-order) SQL injection.
The text was updated successfully, but these errors were encountered:
Vulnerability Risk
It can lead to the leakage of sensitive information from the database.
Vulnerability Reproduction
@Router /api/v1/role [post]
Set the roleKey field in the request body of this API with a blind SQL injection payload:
The backend code first writes this payload to the
role_key
field of thesys_role
table. Later, when writing to thesys_role_menu
table or thecasbin_rule
table, it references thisrole_key
field, which leads to a secondary (or second-order) SQL injection.The text was updated successfully, but these errors were encountered: