zahedmohammed / testingApi

0 stars 0 forks source link

Sanity_Zahed : ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac #287

Closed zahedmohammed closed 5 years ago

zahedmohammed commented 5 years ago

Project : Sanity_Zahed

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, 28 Feb 2019 14:24:27 GMT]}

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

Request :
{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Ruecker, Ruecker and Ruecker", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "lemuel.lemke@yahoo.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "Dynamic Marketing Producer", "location" : "mY3tUdPZ", "modifiedBy" : "", "modifiedDate" : "", "name" : "mY3tUdPZ", "password" : "mY3tUdPZ", "privileges" : [ "mY3tUdPZ" ], "username" : "annalise.dubuque", "version" : "" }

Response :
{ "requestId" : "None", "requestTime" : "2019-02-28T14:24:27.877+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Org name [Ruecker, Ruecker and Ruecker] exists." } ], "data" : false, "totalPages" : 0, "totalElements" : 0 }

Logs :
2019-02-28 02:24:27 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : URL [http://54.215.136.217/api/v1/users/team-sign-up] 2019-02-28 02:24:27 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : Method [POST] 2019-02-28 02:24:27 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : Request [{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Ruecker, Ruecker and Ruecker", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "lemuel.lemke@yahoo.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "Dynamic Marketing Producer", "location" : "mY3tUdPZ", "modifiedBy" : "", "modifiedDate" : "", "name" : "mY3tUdPZ", "password" : "mY3tUdPZ", "privileges" : [ "mY3tUdPZ" ], "username" : "annalise.dubuque", "version" : "" }] 2019-02-28 02:24:27 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json]}] 2019-02-28 02:24:27 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : Response [{ "requestId" : "None", "requestTime" : "2019-02-28T14:24:27.877+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Org name [Ruecker, Ruecker and Ruecker] exists." } ], "data" : false, "totalPages" : 0, "totalElements" : 0 }] 2019-02-28 02:24:27 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : 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, 28 Feb 2019 14:24:27 GMT]}] 2019-02-28 02:24:27 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : StatusCode [200] 2019-02-28 02:24:27 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : Time [400] 2019-02-28 02:24:27 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : Size [222] 2019-02-28 02:24:27 ERROR [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : Assertion [@StatusCode == 401 OR @StatusCode == 403] resolved-to [200 == 401 OR 200 == 403] result [Failed]

--- FX Bot ---

zahedmohammed commented 5 years ago

Message : This issue is manually closed from FX control plane.

Project : Sanity_Zahed

Job : Default

Env : Default

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, 28 Feb 2019 14:24:27 GMT]}

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

Request :
{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Ruecker, Ruecker and Ruecker", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "lemuel.lemke@yahoo.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "Dynamic Marketing Producer", "location" : "mY3tUdPZ", "modifiedBy" : "", "modifiedDate" : "", "name" : "mY3tUdPZ", "password" : "mY3tUdPZ", "privileges" : [ "mY3tUdPZ" ], "username" : "annalise.dubuque", "version" : "" }

Response :
{ "requestId" : "None", "requestTime" : "2019-02-28T14:24:27.877+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Org name [Ruecker, Ruecker and Ruecker] exists." } ], "data" : false, "totalPages" : 0, "totalElements" : 0 }

Logs :
Assertion [@StatusCode == 401 OR @StatusCode == 403] resolved-to [200 == 401 OR 200 == 403] result [Failed] --- FX Bot ---