devopsenggineer / Sanity

0 stars 0 forks source link

rest : ApiV1UsersEnterpriseSignUpPostAnonymousInvalid #49

Open devopsenggineer opened 5 years ago

devopsenggineer commented 5 years ago

Project : rest

Job : Default

Env : Default

Category : Unsecured

Tags : [ OWASP - OTG-AUTHN-002, FX Top 10 - API Vulnerability, Non-Intrusive]

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

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

Request :
{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Bergnaum-Bergnaum", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "dandre.damore@yahoo.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "Design Liaison", "location" : "SuwEAikG", "modifiedBy" : "", "modifiedDate" : "", "name" : "SuwEAikG", "password" : "SuwEAikG", "privileges" : [ "SuwEAikG" ], "username" : "alta.dibbert", "version" : "" }

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

Logs :
2019-02-21 10:51:22 DEBUG [ApiV1UsersEnterpriseSignUpPostAnonymousInvalid] : URL [http://54.215.136.217/api/v1/users/enterprise-sign-up] 2019-02-21 10:51:22 DEBUG [ApiV1UsersEnterpriseSignUpPostAnonymousInvalid] : Method [POST] 2019-02-21 10:51:22 DEBUG [ApiV1UsersEnterpriseSignUpPostAnonymousInvalid] : Request [{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Bergnaum-Bergnaum", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "dandre.damore@yahoo.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "Design Liaison", "location" : "SuwEAikG", "modifiedBy" : "", "modifiedDate" : "", "name" : "SuwEAikG", "password" : "SuwEAikG", "privileges" : [ "SuwEAikG" ], "username" : "alta.dibbert", "version" : "" }] 2019-02-21 10:51:22 DEBUG [ApiV1UsersEnterpriseSignUpPostAnonymousInvalid] : Request-Headers [{Content-Type=[application/json], Accept=[application/json]}] 2019-02-21 10:51:22 DEBUG [ApiV1UsersEnterpriseSignUpPostAnonymousInvalid] : Response [{ "requestId" : "None", "requestTime" : "2019-02-21T10:51:22.740+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Org name [Bergnaum-Bergnaum] exists." } ], "data" : false, "totalPages" : 0, "totalElements" : 0 }] 2019-02-21 10:51:22 DEBUG [ApiV1UsersEnterpriseSignUpPostAnonymousInvalid] : 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:51:22 GMT]}] 2019-02-21 10:51:22 DEBUG [ApiV1UsersEnterpriseSignUpPostAnonymousInvalid] : StatusCode [200] 2019-02-21 10:51:22 DEBUG [ApiV1UsersEnterpriseSignUpPostAnonymousInvalid] : Time [211] 2019-02-21 10:51:22 DEBUG [ApiV1UsersEnterpriseSignUpPostAnonymousInvalid] : Size [211] 2019-02-21 10:51:22 ERROR [ApiV1UsersEnterpriseSignUpPostAnonymousInvalid] : Assertion [@StatusCode == 401 OR @StatusCode == 403] resolved-to [200 == 401 OR 200 == 403] result [Failed]

--- FX Bot ---