zahedmohammed / testingApi

0 stars 0 forks source link

Test13 : ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac #199

Open zahedmohammed opened 5 years ago

zahedmohammed commented 5 years ago

Project : Test13

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 09:18:33 GMT]}

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

Request :
{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Koelpin-Koelpin", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "gordon.ryan@yahoo.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "Central Technology Designer", "location" : "k0nZVyte", "modifiedBy" : "", "modifiedDate" : "", "name" : "k0nZVyte", "password" : "k0nZVyte", "privileges" : [ "k0nZVyte" ], "username" : "ward.keeling", "version" : "" }

Response :
{ "requestId" : "None", "requestTime" : "2019-02-21T09:18:34.083+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Org name [Koelpin-Koelpin] exists." } ], "data" : false, "totalPages" : 0, "totalElements" : 0 }

Logs :
2019-02-21 09:18:34 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : URL [http://54.215.136.217/api/v1/users/team-sign-up] 2019-02-21 09:18:34 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : Method [POST] 2019-02-21 09:18:34 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : Request [{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Koelpin-Koelpin", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "gordon.ryan@yahoo.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "Central Technology Designer", "location" : "k0nZVyte", "modifiedBy" : "", "modifiedDate" : "", "name" : "k0nZVyte", "password" : "k0nZVyte", "privileges" : [ "k0nZVyte" ], "username" : "ward.keeling", "version" : "" }] 2019-02-21 09:18:34 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json]}] 2019-02-21 09:18:34 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : Response [{ "requestId" : "None", "requestTime" : "2019-02-21T09:18:34.083+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Org name [Koelpin-Koelpin] exists." } ], "data" : false, "totalPages" : 0, "totalElements" : 0 }] 2019-02-21 09:18:34 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, 21 Feb 2019 09:18:33 GMT]}] 2019-02-21 09:18:34 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : StatusCode [200] 2019-02-21 09:18:34 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : Time [231] 2019-02-21 09:18:34 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : Size [209] 2019-02-21 09:18:34 ERROR [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : Assertion [@StatusCode == 401 OR @StatusCode == 403] resolved-to [200 == 401 OR 200 == 403] result [Failed]

--- FX Bot ---

zahedmohammed commented 5 years ago

Project : Test13

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, 21 Feb 2019 09:25:23 GMT]}

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

Request :
{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Labadie-Labadie", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "kyleigh.keeling@hotmail.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "Construction Director", "location" : "UP8uH3vk", "modifiedBy" : "", "modifiedDate" : "", "name" : "UP8uH3vk", "password" : "UP8uH3vk", "privileges" : [ "UP8uH3vk" ], "username" : "harley.glover", "version" : "" }

Response :
{ "requestId" : "None", "requestTime" : "2019-02-21T09:25:23.704+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Org name [Labadie-Labadie] 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 ---

zahedmohammed commented 5 years ago

Project : Test13

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, 21 Feb 2019 09:25:25 GMT]}

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

Request :
{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Rice-Rice", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "elliott.gleason@hotmail.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "Regional Retail Agent", "location" : "oT8jbZPC", "modifiedBy" : "", "modifiedDate" : "", "name" : "oT8jbZPC", "password" : "oT8jbZPC", "privileges" : [ "oT8jbZPC" ], "username" : "hailey.veum", "version" : "" }

Response :
{ "requestId" : "None", "requestTime" : "2019-02-21T09:25:25.997+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Org name [Rice-Rice] exists." } ], "data" : false, "totalPages" : 0, "totalElements" : 0 }

Logs :
2019-02-21 09:25:25 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : URL [http://54.215.136.217/api/v1/users/team-sign-up] 2019-02-21 09:25:25 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : Method [POST] 2019-02-21 09:25:25 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : Request [{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Rice-Rice", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "elliott.gleason@hotmail.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "Regional Retail Agent", "location" : "oT8jbZPC", "modifiedBy" : "", "modifiedDate" : "", "name" : "oT8jbZPC", "password" : "oT8jbZPC", "privileges" : [ "oT8jbZPC" ], "username" : "hailey.veum", "version" : "" }] 2019-02-21 09:25:25 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json]}] 2019-02-21 09:25:25 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : Response [{ "requestId" : "None", "requestTime" : "2019-02-21T09:25:25.997+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Org name [Rice-Rice] exists." } ], "data" : false, "totalPages" : 0, "totalElements" : 0 }] 2019-02-21 09:25:25 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, 21 Feb 2019 09:25:25 GMT]}] 2019-02-21 09:25:25 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : StatusCode [200] 2019-02-21 09:25:25 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : Time [203] 2019-02-21 09:25:25 DEBUG [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : Size [203] 2019-02-21 09:25:25 ERROR [ApiV1UsersTeamSignUpPostRoleAdminDisallowedRbac] : Assertion [@StatusCode == 401 OR @StatusCode == 403] resolved-to [200 == 401 OR 200 == 403] result [Failed]

--- FX Bot ---