zahedmohammed / testingApi

0 stars 0 forks source link

Test13 : ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac #189

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:32 GMT]}

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

Request :
{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Rau Group", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "itzel.nicolas@hotmail.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "Dynamic Mining Designer", "location" : "OJVU8Tm2", "modifiedBy" : "", "modifiedDate" : "", "name" : "OJVU8Tm2", "password" : "OJVU8Tm2", "privileges" : [ "OJVU8Tm2" ], "username" : "clint.lind", "version" : "" }

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

Logs :
2019-02-21 09:18:32 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : URL [http://54.215.136.217/api/v1/users/personal-sign-up] 2019-02-21 09:18:32 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : Method [POST] 2019-02-21 09:18:32 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : Request [{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Rau Group", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "itzel.nicolas@hotmail.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "Dynamic Mining Designer", "location" : "OJVU8Tm2", "modifiedBy" : "", "modifiedDate" : "", "name" : "OJVU8Tm2", "password" : "OJVU8Tm2", "privileges" : [ "OJVU8Tm2" ], "username" : "clint.lind", "version" : "" }] 2019-02-21 09:18:32 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json]}] 2019-02-21 09:18:32 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : Response [{ "requestId" : "None", "requestTime" : "2019-02-21T09:18:32.865+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Org name [Rau Group] exists." } ], "data" : false, "totalPages" : 0, "totalElements" : 0 }] 2019-02-21 09:18:32 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : 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:32 GMT]}] 2019-02-21 09:18:32 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : StatusCode [200] 2019-02-21 09:18:32 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : Time [236] 2019-02-21 09:18:32 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : Size [203] 2019-02-21 09:18:32 ERROR [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : 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/personal-sign-up

Request :
{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Schinner, Schinner and Schinner", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "kelsie.pouros@hotmail.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "Administration Assistant", "location" : "Q4ZBtXmf", "modifiedBy" : "", "modifiedDate" : "", "name" : "Q4ZBtXmf", "password" : "Q4ZBtXmf", "privileges" : [ "Q4ZBtXmf" ], "username" : "demarco.bechtelar", "version" : "" }

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

Logs :
2019-02-21 09:25:23 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : URL [http://54.215.136.217/api/v1/users/personal-sign-up] 2019-02-21 09:25:23 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : Method [POST] 2019-02-21 09:25:23 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : Request [{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Schinner, Schinner and Schinner", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "kelsie.pouros@hotmail.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "Administration Assistant", "location" : "Q4ZBtXmf", "modifiedBy" : "", "modifiedDate" : "", "name" : "Q4ZBtXmf", "password" : "Q4ZBtXmf", "privileges" : [ "Q4ZBtXmf" ], "username" : "demarco.bechtelar", "version" : "" }] 2019-02-21 09:25:23 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json]}] 2019-02-21 09:25:23 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : Response [{ "requestId" : "None", "requestTime" : "2019-02-21T09:25:23.307+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Org name [Schinner, Schinner and Schinner] exists." } ], "data" : false, "totalPages" : 0, "totalElements" : 0 }] 2019-02-21 09:25:23 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : 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:23 GMT]}] 2019-02-21 09:25:23 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : StatusCode [200] 2019-02-21 09:25:23 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : Time [469] 2019-02-21 09:25:23 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : Size [225] 2019-02-21 09:25:23 ERROR [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : 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:24 GMT]}

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

Request :
{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Hayes-Hayes", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "felipe.feeney@gmail.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "Lead Hospitality Engineer", "location" : "pjwlxAl5", "modifiedBy" : "", "modifiedDate" : "", "name" : "pjwlxAl5", "password" : "pjwlxAl5", "privileges" : [ "pjwlxAl5" ], "username" : "lafayette.auer", "version" : "" }

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

Logs :
2019-02-21 09:25:24 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : URL [http://54.215.136.217/api/v1/users/personal-sign-up] 2019-02-21 09:25:24 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : Method [POST] 2019-02-21 09:25:24 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : Request [{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Hayes-Hayes", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "felipe.feeney@gmail.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "Lead Hospitality Engineer", "location" : "pjwlxAl5", "modifiedBy" : "", "modifiedDate" : "", "name" : "pjwlxAl5", "password" : "pjwlxAl5", "privileges" : [ "pjwlxAl5" ], "username" : "lafayette.auer", "version" : "" }] 2019-02-21 09:25:24 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json]}] 2019-02-21 09:25:24 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : Response [{ "requestId" : "None", "requestTime" : "2019-02-21T09:25:24.693+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Org name [Hayes-Hayes] exists." } ], "data" : false, "totalPages" : 0, "totalElements" : 0 }] 2019-02-21 09:25:24 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : 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:24 GMT]}] 2019-02-21 09:25:24 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : StatusCode [200] 2019-02-21 09:25:24 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : Time [208] 2019-02-21 09:25:24 DEBUG [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : Size [205] 2019-02-21 09:25:24 ERROR [ApiV1UsersPersonalSignUpPostRoleAdminDisallowedRbac] : Assertion [@StatusCode == 401 OR @StatusCode == 403] resolved-to [200 == 401 OR 200 == 403] result [Failed]

--- FX Bot ---