zahedmohammed / testingApi

0 stars 0 forks source link

SanityTesting_Zahed : ApiV1PrimaryTransactionPutAnonymousInvalid #237

Open zahedmohammed opened 5 years ago

zahedmohammed commented 5 years ago

Project : SanityTesting_Zahed

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

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

Request :
{ "amount" : "5739", "availableBalance" : "1121586478", "createdBy" : "", "createdDate" : "", "description" : "9o1kOXgy", "id" : "", "inactive" : false, "modifiedBy" : "", "modifiedDate" : "", "status" : "9o1kOXgy", "type" : "9o1kOXgy", "user" : { "createdBy" : "", "createdDate" : "", "id" : "", "inactive" : false, "modifiedBy" : "", "modifiedDate" : "", "name" : "9o1kOXgy", "version" : "" }, "version" : "" }

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

Logs :
2019-02-21 00:32:07 DEBUG [ApiV1PrimaryTransactionPutAnonymousInvalid] : URL [http://54.215.136.217/api/v1/primary-transaction] 2019-02-21 00:32:07 DEBUG [ApiV1PrimaryTransactionPutAnonymousInvalid] : Method [PUT] 2019-02-21 00:32:07 DEBUG [ApiV1PrimaryTransactionPutAnonymousInvalid] : Request [{ "amount" : "5739", "availableBalance" : "1121586478", "createdBy" : "", "createdDate" : "", "description" : "9o1kOXgy", "id" : "", "inactive" : false, "modifiedBy" : "", "modifiedDate" : "", "status" : "9o1kOXgy", "type" : "9o1kOXgy", "user" : { "createdBy" : "", "createdDate" : "", "id" : "", "inactive" : false, "modifiedBy" : "", "modifiedDate" : "", "name" : "9o1kOXgy", "version" : "" }, "version" : "" }] 2019-02-21 00:32:07 DEBUG [ApiV1PrimaryTransactionPutAnonymousInvalid] : Request-Headers [{Content-Type=[application/json], Accept=[application/json]}] 2019-02-21 00:32:07 DEBUG [ApiV1PrimaryTransactionPutAnonymousInvalid] : Response [{ "requestId" : "None", "requestTime" : "2019-02-21T12:32:07.333+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : null } ], "data" : null, "totalPages" : 0, "totalElements" : 0 }] 2019-02-21 00:32:07 DEBUG [ApiV1PrimaryTransactionPutAnonymousInvalid] : 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 12:32:06 GMT]}] 2019-02-21 00:32:07 DEBUG [ApiV1PrimaryTransactionPutAnonymousInvalid] : StatusCode [200] 2019-02-21 00:32:07 DEBUG [ApiV1PrimaryTransactionPutAnonymousInvalid] : Time [125] 2019-02-21 00:32:07 DEBUG [ApiV1PrimaryTransactionPutAnonymousInvalid] : Size [176] 2019-02-21 00:32:07 ERROR [ApiV1PrimaryTransactionPutAnonymousInvalid] : Assertion [@StatusCode == 401 OR @StatusCode == 403] resolved-to [200 == 401 OR 200 == 403] result [Failed]

--- FX Bot ---