devopsenggineer / Sanity

0 stars 0 forks source link

rest : ApiV1UsersPersonalSignUpPostRolePmDisallowedRbac #35

Open devopsenggineer opened 5 years ago

devopsenggineer commented 5 years ago

Project : rest

Job : Default

Env : Default

Category : RBAC

Tags : [OWASP - OTG-IDENT-001 , FX Top 10 - API Vulnerability, Endpoint_Access_Control]

Severity : Major

Region : FXLabs/US_WEST_1

Result : fail

Status Code : 200

Headers : {X-Content-Type-Options=[nosniff], X-XSS-Protection=[1; mode=block], Cache-Control=[no-cache, no-store, max-age=0, must-revalidate], Pragma=[no-cache], Expires=[0], X-Frame-Options=[DENY], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Thu, 21 Feb 2019 10:44:54 GMT]}

Endpoint : http://54.215.136.217/api/v1/users/personal-sign-up

Request :
{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Kessler LLC", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "shyann.jenkins@hotmail.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "IT Administrator", "location" : "Fg6FPrWh", "modifiedBy" : "", "modifiedDate" : "", "name" : "Fg6FPrWh", "password" : "Fg6FPrWh", "privileges" : [ "Fg6FPrWh" ], "username" : "braeden.satterfield", "version" : "" }

Response :
{ "requestId" : "None", "requestTime" : "2019-02-21T10:44:54.818+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Org name [Kessler LLC] exists." } ], "data" : false, "totalPages" : 0, "totalElements" : 0 }

Logs :
2019-02-21 10:44:54 DEBUG [ApiV1UsersPersonalSignUpPostRolePmDisallowedRbac] : URL [http://54.215.136.217/api/v1/users/personal-sign-up] 2019-02-21 10:44:54 DEBUG [ApiV1UsersPersonalSignUpPostRolePmDisallowedRbac] : Method [POST] 2019-02-21 10:44:54 DEBUG [ApiV1UsersPersonalSignUpPostRolePmDisallowedRbac] : Request [{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Kessler LLC", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "shyann.jenkins@hotmail.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "IT Administrator", "location" : "Fg6FPrWh", "modifiedBy" : "", "modifiedDate" : "", "name" : "Fg6FPrWh", "password" : "Fg6FPrWh", "privileges" : [ "Fg6FPrWh" ], "username" : "braeden.satterfield", "version" : "" }] 2019-02-21 10:44:54 DEBUG [ApiV1UsersPersonalSignUpPostRolePmDisallowedRbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json]}] 2019-02-21 10:44:54 DEBUG [ApiV1UsersPersonalSignUpPostRolePmDisallowedRbac] : Response [{ "requestId" : "None", "requestTime" : "2019-02-21T10:44:54.818+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Org name [Kessler LLC] exists." } ], "data" : false, "totalPages" : 0, "totalElements" : 0 }] 2019-02-21 10:44:54 DEBUG [ApiV1UsersPersonalSignUpPostRolePmDisallowedRbac] : Response-Headers [{X-Content-Type-Options=[nosniff], X-XSS-Protection=[1; mode=block], Cache-Control=[no-cache, no-store, max-age=0, must-revalidate], Pragma=[no-cache], Expires=[0], X-Frame-Options=[DENY], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Thu, 21 Feb 2019 10:44:54 GMT]}] 2019-02-21 10:44:54 DEBUG [ApiV1UsersPersonalSignUpPostRolePmDisallowedRbac] : StatusCode [200] 2019-02-21 10:44:54 DEBUG [ApiV1UsersPersonalSignUpPostRolePmDisallowedRbac] : Time [237] 2019-02-21 10:44:54 DEBUG [ApiV1UsersPersonalSignUpPostRolePmDisallowedRbac] : Size [205] 2019-02-21 10:44:54 ERROR [ApiV1UsersPersonalSignUpPostRolePmDisallowedRbac] : Assertion [@StatusCode == 401 OR @StatusCode == 403] resolved-to [200 == 401 OR 200 == 403] result [Failed]

--- FX Bot ---