Checkmarx Improper Resource Access Authorization

后端 未结 1 1412
误落风尘
误落风尘 2021-01-28 00:10

I am using the Checkmarx security tool to scan my code, it is saying that when I execute executeUpdate() commands to the database that is \"Improper Resource Access Authorizatio

相关标签:
1条回答
  • 2021-01-28 00:55

    Add some code that performs access control checks that makes use of words like "admin", "authoriz" or "allowed"

     if (user.equals("admin")){
        int rowInserted = preparedStatement.executeUpdate();
     }
    
    0 讨论(0)
提交回复
热议问题