asriz7777 / FX-Scripts-Functional

0 stars 0 forks source link

Vulnerability [ABAC_Level2] : GET:/api/v1/transfers/{id} #188

Open asriz7777 opened 5 years ago

asriz7777 commented 5 years ago

Project : testapp

Template : ApiV1TransfersIdGetUseraCreateTransferstransactiontypewithdrawUsercDisallowAbact2

Run Id : 8a80810f695d230201695d34f63e137a

Job : Default

Env : Default

Category : ABAC_Level2

Tags : [FX Top 10 - API Vulnerability, Data_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], Set-Cookie=[SESSION=NjI4YjdlODMtNWU5Yy00MmQ3LTgwMDMtYjMwYTA3NTEzZDBi; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:10:12 GMT]}

Endpoint : http://54.215.136.217/api/v1/transfers/8a80808569151b8601695d35f4d72379

Request :

Response :
{ "requestId" : "None", "requestTime" : "2019-03-08T12:10:12.669+0000", "errors" : false, "messages" : [ ], "data" : { "id" : "8a80808569151b8601695d35f4d72379", "createdBy" : "8a8080ef675086770167508ce8d30000", "createdDate" : "2019-03-08T12:10:11.031+0000", "modifiedBy" : "8a8080ef675086770167508ce8d30000", "modifiedDate" : "2019-03-08T12:10:11.031+0000", "version" : null, "inactive" : false, "location" : "9l7T35EK", "description" : "9l7T35EK", "confirmed" : false, "transactionType" : "WITHDRAW" }, "totalPages" : 0, "totalElements" : 0 }

Logs :
2019-03-08 00:10:11 DEBUG [TransfersTransactiontypeWithdrawCreateUserAInitAbact2] : URL [http://54.215.136.217/api/v1/transfers] 2019-03-08 00:10:11 DEBUG [TransfersTransactiontypeWithdrawCreateUserAInitAbact2] : Method [POST] 2019-03-08 00:10:11 DEBUG [TransfersTransactiontypeWithdrawCreateUserAInitAbact2] : Request [{ "confirmed" : false, "createdBy" : "", "createdDate" : "", "description" : "9l7T35EK", "id" : "", "inactive" : false, "location" : "9l7T35EK", "modifiedBy" : "", "modifiedDate" : "", "transactionType" : "WITHDRAW", "version" : "" }] 2019-03-08 00:10:11 DEBUG [TransfersTransactiontypeWithdrawCreateUserAInitAbact2] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic YWRtaW5AbmV0YmFua2luZy5pbzphZG1pbjEyMyQ=]}] 2019-03-08 00:10:11 DEBUG [TransfersTransactiontypeWithdrawCreateUserAInitAbact2] : Response [{ "requestId" : "None", "requestTime" : "2019-03-08T12:10:11.046+0000", "errors" : false, "messages" : [ ], "data" : { "id" : "8a80808569151b8601695d35f4d72379", "createdBy" : "8a8080ef675086770167508ce8d30000", "createdDate" : "2019-03-08T12:10:11.031+0000", "modifiedBy" : "8a8080ef675086770167508ce8d30000", "modifiedDate" : "2019-03-08T12:10:11.031+0000", "version" : null, "inactive" : false, "location" : "9l7T35EK", "description" : "9l7T35EK", "confirmed" : false, "transactionType" : "WITHDRAW" }, "totalPages" : 0, "totalElements" : 0 }] 2019-03-08 00:10:11 DEBUG [TransfersTransactiontypeWithdrawCreateUserAInitAbact2] : 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], Set-Cookie=[SESSION=NmE2OTRlMDYtOGU5OS00ZjUyLTlkYWItOWYzYmNlZmRjMjll; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:10:11 GMT]}] 2019-03-08 00:10:11 DEBUG [TransfersTransactiontypeWithdrawCreateUserAInitAbact2] : StatusCode [200] 2019-03-08 00:10:11 DEBUG [TransfersTransactiontypeWithdrawCreateUserAInitAbact2] : Time [1963] 2019-03-08 00:10:11 DEBUG [TransfersTransactiontypeWithdrawCreateUserAInitAbact2] : Size [488] 2019-03-08 00:10:11 INFO [null] : Assertion [@StatusCode == 200 OR @StatusCode == 201] resolved-to [200 == 200 OR 200 == 201] result [Passed] 2019-03-08 00:10:11 DEBUG [TransfersTransactiontypeWithdrawCreateUserAInitAbact2_Headers] : 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], Set-Cookie=[SESSION=NmE2OTRlMDYtOGU5OS00ZjUyLTlkYWItOWYzYmNlZmRjMjll; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:10:11 GMT]}] 2019-03-08 00:10:11 DEBUG [TransfersTransactiontypeWithdrawCreateUserAInitAbact2_Headers] : 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], Set-Cookie=[SESSION=NmE2OTRlMDYtOGU5OS00ZjUyLTlkYWItOWYzYmNlZmRjMjll; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:10:11 GMT]}] 2019-03-08 00:10:11 DEBUG [TransfersTransactiontypeWithdrawCreateUserAInitAbact2_Headers[2]] : 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], Set-Cookie=[SESSION=NmE2OTRlMDYtOGU5OS00ZjUyLTlkYWItOWYzYmNlZmRjMjll; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:10:11 GMT]}] 2019-03-08 00:10:11 DEBUG [TransfersTransactiontypeWithdrawCreateUserAInitAbact2_Headers[2]] : 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], Set-Cookie=[SESSION=NmE2OTRlMDYtOGU5OS00ZjUyLTlkYWItOWYzYmNlZmRjMjll; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:10:11 GMT]}] 2019-03-08 00:10:12 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypewithdrawUsercDisallowAbact2] : URL [http://54.215.136.217/api/v1/transfers/8a80808569151b8601695d35f4d72379] 2019-03-08 00:10:12 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypewithdrawUsercDisallowAbact2] : Method [GET] 2019-03-08 00:10:12 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypewithdrawUsercDisallowAbact2] : Request [] 2019-03-08 00:10:12 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypewithdrawUsercDisallowAbact2] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic dXNlckNAb25saW5lc3VwcG9ydC5pbzphZG1pbjEyMyQ=]}] 2019-03-08 00:10:12 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypewithdrawUsercDisallowAbact2] : Response [{ "requestId" : "None", "requestTime" : "2019-03-08T12:10:12.669+0000", "errors" : false, "messages" : [ ], "data" : { "id" : "8a80808569151b8601695d35f4d72379", "createdBy" : "8a8080ef675086770167508ce8d30000", "createdDate" : "2019-03-08T12:10:11.031+0000", "modifiedBy" : "8a8080ef675086770167508ce8d30000", "modifiedDate" : "2019-03-08T12:10:11.031+0000", "version" : null, "inactive" : false, "location" : "9l7T35EK", "description" : "9l7T35EK", "confirmed" : false, "transactionType" : "WITHDRAW" }, "totalPages" : 0, "totalElements" : 0 }] 2019-03-08 00:10:12 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypewithdrawUsercDisallowAbact2] : 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], Set-Cookie=[SESSION=NjI4YjdlODMtNWU5Yy00MmQ3LTgwMDMtYjMwYTA3NTEzZDBi; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:10:12 GMT]}] 2019-03-08 00:10:12 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypewithdrawUsercDisallowAbact2] : StatusCode [200] 2019-03-08 00:10:12 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypewithdrawUsercDisallowAbact2] : Time [1613] 2019-03-08 00:10:12 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypewithdrawUsercDisallowAbact2] : Size [488] 2019-03-08 00:10:12 ERROR [ApiV1TransfersIdGetUseraCreateTransferstransactiontypewithdrawUsercDisallowAbact2] : Assertion [@StatusCode == 401 OR @StatusCode == 403 OR @Response.errors == true] resolved-to [200 == 401 OR 200 == 403 OR false == true] result [Failed] 2019-03-08 00:10:13 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypewithdrawAbstractAbact2] : URL [http://54.215.136.217/api/v1/transfers/8a80808569151b8601695d35f4d72379] 2019-03-08 00:10:13 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypewithdrawAbstractAbact2] : Method [DELETE] 2019-03-08 00:10:13 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypewithdrawAbstractAbact2] : Request [null] 2019-03-08 00:10:13 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypewithdrawAbstractAbact2] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic YWRtaW5AbmV0YmFua2luZy5pbzphZG1pbjEyMyQ=]}] 2019-03-08 00:10:13 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypewithdrawAbstractAbact2] : Response [{ "requestId" : "None", "requestTime" : "2019-03-08T12:10:13.882+0000", "errors" : false, "messages" : [ ], "data" : null, "totalPages" : 0, "totalElements" : 0 }] 2019-03-08 00:10:13 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypewithdrawAbstractAbact2] : 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], Set-Cookie=[SESSION=YjVkODk2YWMtYzIzMi00OGIzLWI5ODctZDhhOGEyYjM1M2Fk; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:10:13 GMT]}] 2019-03-08 00:10:13 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypewithdrawAbstractAbact2] : StatusCode [200] 2019-03-08 00:10:13 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypewithdrawAbstractAbact2] : Time [1208] 2019-03-08 00:10:13 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypewithdrawAbstractAbact2] : Size [139] 2019-03-08 00:10:13 INFO [null] : Assertion [@StatusCode == 200] resolved-to [200 == 200] result [Passed]

--- FX Bot ---