AtifaFahmeen / Testcases1509

0 stars 0 forks source link

Demo App : ApiV1UsersTeamSignUpPostAuthInvalidSql #237

Open AtifaFahmeen opened 5 years ago

AtifaFahmeen commented 5 years ago

Project : Demo App

Job : Default

Env : Default

Category : InvalidAuthSQL

Tags : [OWASP A1, [PCI DSS 3.0] 6.5.1, OTG-AUTHN-004, FX Top 10 - API Vulnerability, Non-Intrusive, Injection]

Severity : Major

Region : US_WEST_2

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=[Wed, 13 Feb 2019 08:04:40 GMT]}

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

Request :
{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Eichmann, Eichmann and Eichmann", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "noemie.west@yahoo.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "Global Sales Designer", "location" : "WrLlY3AG", "modifiedBy" : "", "modifiedDate" : "", "name" : "WrLlY3AG", "password" : "WrLlY3AG", "username" : "britney.strosin", "version" : "" }

Response :
{ "requestId" : "None", "requestTime" : "2019-02-13T08:04:40.134+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Org name [Eichmann, Eichmann and Eichmann] exists." } ], "data" : false, "totalPages" : 0, "totalElements" : 0 }

Logs :
2019-02-13 08:04:40 DEBUG [ApiV1UsersTeamSignUpPostAuthInvalidSql] : URL [http://54.215.136.217/api/v1/users/team-sign-up] 2019-02-13 08:04:40 DEBUG [ApiV1UsersTeamSignUpPostAuthInvalidSql] : Method [POST] 2019-02-13 08:04:40 DEBUG [ApiV1UsersTeamSignUpPostAuthInvalidSql] : Request [{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Eichmann, Eichmann and Eichmann", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "noemie.west@yahoo.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "Global Sales Designer", "location" : "WrLlY3AG", "modifiedBy" : "", "modifiedDate" : "", "name" : "WrLlY3AG", "password" : "WrLlY3AG", "username" : "britney.strosin", "version" : "" }] 2019-02-13 08:04:40 DEBUG [ApiV1UsersTeamSignUpPostAuthInvalidSql] : Request-Headers [{Content-Type=[application/json], Accept=[application/json]}] 2019-02-13 08:04:40 DEBUG [ApiV1UsersTeamSignUpPostAuthInvalidSql] : Response [{ "requestId" : "None", "requestTime" : "2019-02-13T08:04:40.134+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Org name [Eichmann, Eichmann and Eichmann] exists." } ], "data" : false, "totalPages" : 0, "totalElements" : 0 }] 2019-02-13 08:04:40 DEBUG [ApiV1UsersTeamSignUpPostAuthInvalidSql] : 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=[Wed, 13 Feb 2019 08:04:40 GMT]}] 2019-02-13 08:04:40 DEBUG [ApiV1UsersTeamSignUpPostAuthInvalidSql] : StatusCode [200] 2019-02-13 08:04:40 DEBUG [ApiV1UsersTeamSignUpPostAuthInvalidSql] : Time [1407] 2019-02-13 08:04:40 DEBUG [ApiV1UsersTeamSignUpPostAuthInvalidSql] : Size [225] 2019-02-13 08:04:40 ERROR [ApiV1UsersTeamSignUpPostAuthInvalidSql] : Assertion [@StatusCode == 401 OR @StatusCode == 403] resolved-to [200 == 401 OR 200 == 403] result [Failed]

--- FX Bot ---

AtifaFahmeen commented 5 years ago

Project : Demo App

Job : Default

Env : Default

Region : US_WEST_2

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=[Wed, 13 Feb 2019 08:06:37 GMT]}

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

Request :
{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Renner-Renner", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "wellington.koch@yahoo.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "Regional Mining Designer", "location" : "UOhiorva", "modifiedBy" : "", "modifiedDate" : "", "name" : "UOhiorva", "password" : "UOhiorva", "username" : "mabel.wilkinson", "version" : "" }

Response :
{ "requestId" : "None", "requestTime" : "2019-02-13T08:06:37.435+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Org name [Renner-Renner] exists." } ], "data" : false, "totalPages" : 0, "totalElements" : 0 }

Logs :
2019-02-13 08:06:37 DEBUG [ApiV1UsersTeamSignUpPostAuthInvalidSql] : URL [http://54.215.136.217/api/v1/users/team-sign-up] 2019-02-13 08:06:37 DEBUG [ApiV1UsersTeamSignUpPostAuthInvalidSql] : Method [POST] 2019-02-13 08:06:37 DEBUG [ApiV1UsersTeamSignUpPostAuthInvalidSql] : Request [{ "accountNonExpired" : false, "accountNonLocked" : false, "company" : "Renner-Renner", "createdBy" : "", "createdDate" : "", "credentialsNonExpired" : false, "email" : "wellington.koch@yahoo.com", "enabled" : false, "id" : "", "inactive" : false, "jobTitle" : "Regional Mining Designer", "location" : "UOhiorva", "modifiedBy" : "", "modifiedDate" : "", "name" : "UOhiorva", "password" : "UOhiorva", "username" : "mabel.wilkinson", "version" : "" }] 2019-02-13 08:06:37 DEBUG [ApiV1UsersTeamSignUpPostAuthInvalidSql] : Request-Headers [{Content-Type=[application/json], Accept=[application/json]}] 2019-02-13 08:06:37 DEBUG [ApiV1UsersTeamSignUpPostAuthInvalidSql] : Response [{ "requestId" : "None", "requestTime" : "2019-02-13T08:06:37.435+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Org name [Renner-Renner] exists." } ], "data" : false, "totalPages" : 0, "totalElements" : 0 }] 2019-02-13 08:06:37 DEBUG [ApiV1UsersTeamSignUpPostAuthInvalidSql] : 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=[Wed, 13 Feb 2019 08:06:37 GMT]}] 2019-02-13 08:06:37 DEBUG [ApiV1UsersTeamSignUpPostAuthInvalidSql] : StatusCode [200] 2019-02-13 08:06:37 DEBUG [ApiV1UsersTeamSignUpPostAuthInvalidSql] : Time [1171] 2019-02-13 08:06:37 DEBUG [ApiV1UsersTeamSignUpPostAuthInvalidSql] : Size [207] 2019-02-13 08:06:37 ERROR [ApiV1UsersTeamSignUpPostAuthInvalidSql] : Assertion [@StatusCode == 401 OR @StatusCode == 403] resolved-to [200 == 401 OR 200 == 403] result [Failed]

--- FX Bot ---