-
Bug
-
Resolution: Done
-
Major
-
7.46.0.Final
-
None
-
False
-
False
-
NEW
-
NEW
-
Undefined
-
-
---
-
---
-
-
2020 Week 46-48 (from Nov 9), 2020 Week 49-51 (from Nov 30), 2020 Week 52-03 (from Dec 21)
REST Endpoints accessible to all logged in users - even those without the correct roles.
We can limit access to specific roles by adding a security-constraint into web.xml which will cover the endpoints you want to protect.
<security-constraint> <web-resource-collection> <web-resource-name>REST web resources</web-resource-name> <url-pattern>/rest/controller/*</url-pattern> <http-method>GET</http-method> <http-method>PUT</http-method> <http-method>POST</http-method> <http-method>DELETE</http-method> </web-resource-collection> <auth-constraint> <role-name>rest-all</role-name> <role-name>user</role-name> </auth-constraint> </security-constraint>
I already share the steps in steps to Reproduce.
- clones
-
RHPAM-3284 PAM Authorisation Issue - REST Endpoints accessible to all logged in users - even those without the correct roles
- Closed