zahedmohammed / testingApi

0 stars 0 forks source link

etqt : ApiV1UsersPersonalSignUpPostRoleUserDisallowedRbac #143

Open zahedmohammed opened 5 years ago

zahedmohammed commented 5 years ago

Project : etqt

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=[Tue, 19 Feb 2019 17:43:24 GMT]}

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

Request :
{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Strosin-Strosin", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "marquise.connelly@gmail.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "Mining Officer", "location" : "tyWF68bT", "modifiedBy" : "", "modifiedDate" : "", "name" : "tyWF68bT", "password" : "tyWF68bT", "privileges" : [ "tyWF68bT" ], "username" : "marcia.schiller", "version" : "" }

Response :
{ "requestId" : "None", "requestTime" : "2019-02-19T17:43:24.540+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Org name [Strosin-Strosin] exists." } ], "data" : false, "totalPages" : 0, "totalElements" : 0 }

Logs :
2019-02-19 05:43:24 DEBUG [ApiV1UsersPersonalSignUpPostRoleUserDisallowedRbac] : URL [http://54.215.136.217/api/v1/users/personal-sign-up] 2019-02-19 05:43:24 DEBUG [ApiV1UsersPersonalSignUpPostRoleUserDisallowedRbac] : Method [POST] 2019-02-19 05:43:24 DEBUG [ApiV1UsersPersonalSignUpPostRoleUserDisallowedRbac] : Request [{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Strosin-Strosin", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "marquise.connelly@gmail.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "Mining Officer", "location" : "tyWF68bT", "modifiedBy" : "", "modifiedDate" : "", "name" : "tyWF68bT", "password" : "tyWF68bT", "privileges" : [ "tyWF68bT" ], "username" : "marcia.schiller", "version" : "" }] 2019-02-19 05:43:24 DEBUG [ApiV1UsersPersonalSignUpPostRoleUserDisallowedRbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json]}] 2019-02-19 05:43:24 DEBUG [ApiV1UsersPersonalSignUpPostRoleUserDisallowedRbac] : Response [{ "requestId" : "None", "requestTime" : "2019-02-19T17:43:24.540+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Org name [Strosin-Strosin] exists." } ], "data" : false, "totalPages" : 0, "totalElements" : 0 }] 2019-02-19 05:43:24 DEBUG [ApiV1UsersPersonalSignUpPostRoleUserDisallowedRbac] : 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=[Tue, 19 Feb 2019 17:43:24 GMT]}] 2019-02-19 05:43:24 DEBUG [ApiV1UsersPersonalSignUpPostRoleUserDisallowedRbac] : StatusCode [200] 2019-02-19 05:43:24 DEBUG [ApiV1UsersPersonalSignUpPostRoleUserDisallowedRbac] : Time [217] 2019-02-19 05:43:24 DEBUG [ApiV1UsersPersonalSignUpPostRoleUserDisallowedRbac] : Size [209] 2019-02-19 05:43:24 ERROR [ApiV1UsersPersonalSignUpPostRoleUserDisallowedRbac] : Assertion [@StatusCode == 401 OR @StatusCode == 403] resolved-to [200 == 401 OR 200 == 403] result [Failed]

--- FX Bot ---