zahedmohammed / testingApi

0 stars 0 forks source link

Test13 : ApiV1PrimaryTransactionPutRoleAdminDisallowedRbac #186

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/primary-transaction

Request :
{ "amount" : "4092", "availableBalance" : "359774644", "createdBy" : "", "createdDate" : "", "description" : "8QVcigin", "id" : "", "inactive" : false, "modifiedBy" : "", "modifiedDate" : "", "status" : "8QVcigin", "type" : "8QVcigin", "user" : { "createdBy" : "", "createdDate" : "", "id" : "", "inactive" : false, "modifiedBy" : "", "modifiedDate" : "", "name" : "8QVcigin", "version" : "" }, "version" : "" }

Response :
{ "requestId" : "None", "requestTime" : "2019-02-21T09:18:32.275+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : null } ], "data" : null, "totalPages" : 0, "totalElements" : 0 }

Logs :
2019-02-21 09:18:32 DEBUG [ApiV1PrimaryTransactionPutRoleAdminDisallowedRbac] : URL [http://54.215.136.217/api/v1/primary-transaction] 2019-02-21 09:18:32 DEBUG [ApiV1PrimaryTransactionPutRoleAdminDisallowedRbac] : Method [PUT] 2019-02-21 09:18:32 DEBUG [ApiV1PrimaryTransactionPutRoleAdminDisallowedRbac] : Request [{ "amount" : "4092", "availableBalance" : "359774644", "createdBy" : "", "createdDate" : "", "description" : "8QVcigin", "id" : "", "inactive" : false, "modifiedBy" : "", "modifiedDate" : "", "status" : "8QVcigin", "type" : "8QVcigin", "user" : { "createdBy" : "", "createdDate" : "", "id" : "", "inactive" : false, "modifiedBy" : "", "modifiedDate" : "", "name" : "8QVcigin", "version" : "" }, "version" : "" }] 2019-02-21 09:18:32 DEBUG [ApiV1PrimaryTransactionPutRoleAdminDisallowedRbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json]}] 2019-02-21 09:18:32 DEBUG [ApiV1PrimaryTransactionPutRoleAdminDisallowedRbac] : Response [{ "requestId" : "None", "requestTime" : "2019-02-21T09:18:32.275+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : null } ], "data" : null, "totalPages" : 0, "totalElements" : 0 }] 2019-02-21 09:18:32 DEBUG [ApiV1PrimaryTransactionPutRoleAdminDisallowedRbac] : 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 [ApiV1PrimaryTransactionPutRoleAdminDisallowedRbac] : StatusCode [200] 2019-02-21 09:18:32 DEBUG [ApiV1PrimaryTransactionPutRoleAdminDisallowedRbac] : Time [14] 2019-02-21 09:18:32 DEBUG [ApiV1PrimaryTransactionPutRoleAdminDisallowedRbac] : Size [176] 2019-02-21 09:18:32 ERROR [ApiV1PrimaryTransactionPutRoleAdminDisallowedRbac] : 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:22 GMT]}

Endpoint : http://54.215.136.217/api/v1/primary-transaction

Request :
{ "amount" : "3767", "availableBalance" : "805277609", "createdBy" : "", "createdDate" : "", "description" : "fbh4NSwa", "id" : "", "inactive" : false, "modifiedBy" : "", "modifiedDate" : "", "status" : "fbh4NSwa", "type" : "fbh4NSwa", "user" : { "createdBy" : "", "createdDate" : "", "id" : "", "inactive" : false, "modifiedBy" : "", "modifiedDate" : "", "name" : "fbh4NSwa", "version" : "" }, "version" : "" }

Response :
{ "requestId" : "None", "requestTime" : "2019-02-21T09:25:22.260+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : null } ], "data" : null, "totalPages" : 0, "totalElements" : 0 }

Logs :
2019-02-21 09:25:22 DEBUG [ApiV1PrimaryTransactionPutRoleAdminDisallowedRbac] : URL [http://54.215.136.217/api/v1/primary-transaction] 2019-02-21 09:25:22 DEBUG [ApiV1PrimaryTransactionPutRoleAdminDisallowedRbac] : Method [PUT] 2019-02-21 09:25:22 DEBUG [ApiV1PrimaryTransactionPutRoleAdminDisallowedRbac] : Request [{ "amount" : "3767", "availableBalance" : "805277609", "createdBy" : "", "createdDate" : "", "description" : "fbh4NSwa", "id" : "", "inactive" : false, "modifiedBy" : "", "modifiedDate" : "", "status" : "fbh4NSwa", "type" : "fbh4NSwa", "user" : { "createdBy" : "", "createdDate" : "", "id" : "", "inactive" : false, "modifiedBy" : "", "modifiedDate" : "", "name" : "fbh4NSwa", "version" : "" }, "version" : "" }] 2019-02-21 09:25:22 DEBUG [ApiV1PrimaryTransactionPutRoleAdminDisallowedRbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json]}] 2019-02-21 09:25:22 DEBUG [ApiV1PrimaryTransactionPutRoleAdminDisallowedRbac] : Response [{ "requestId" : "None", "requestTime" : "2019-02-21T09:25:22.260+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : null } ], "data" : null, "totalPages" : 0, "totalElements" : 0 }] 2019-02-21 09:25:22 DEBUG [ApiV1PrimaryTransactionPutRoleAdminDisallowedRbac] : 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:22 GMT]}] 2019-02-21 09:25:22 DEBUG [ApiV1PrimaryTransactionPutRoleAdminDisallowedRbac] : StatusCode [200] 2019-02-21 09:25:22 DEBUG [ApiV1PrimaryTransactionPutRoleAdminDisallowedRbac] : Time [8] 2019-02-21 09:25:22 DEBUG [ApiV1PrimaryTransactionPutRoleAdminDisallowedRbac] : Size [176] 2019-02-21 09:25:22 ERROR [ApiV1PrimaryTransactionPutRoleAdminDisallowedRbac] : 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/primary-transaction

Request :
{ "amount" : "8480", "availableBalance" : "851286538", "createdBy" : "", "createdDate" : "", "description" : "WA5WMKNM", "id" : "", "inactive" : false, "modifiedBy" : "", "modifiedDate" : "", "status" : "WA5WMKNM", "type" : "WA5WMKNM", "user" : { "createdBy" : "", "createdDate" : "", "id" : "", "inactive" : false, "modifiedBy" : "", "modifiedDate" : "", "name" : "WA5WMKNM", "version" : "" }, "version" : "" }

Response :
{ "requestId" : "None", "requestTime" : "2019-02-21T09:25:23.578+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : null } ], "data" : null, "totalPages" : 0, "totalElements" : 0 }

Logs :
Assertion [@StatusCode == 401 OR @StatusCode == 403] resolved-to [200 == 401 OR 200 == 403] result [Failed] --- FX Bot ---