asriz7777 / FX-Scripts-Functional

0 stars 0 forks source link

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

Open asriz7777 opened 5 years ago

asriz7777 commented 5 years ago

Project : testapp

Template : ApiV1TransfersIdGetUseraCreateTransferstransactiontypewithdrawUserbDisallowAbact2

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=NzE5ZTg3MDItYzMwYS00NDgxLWI3MTAtNGY2NjU2NTQ0ZTll; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:09:43 GMT]}

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

Request :

Response :
{ "requestId" : "None", "requestTime" : "2019-03-08T12:09:44.081+0000", "errors" : false, "messages" : [ ], "data" : { "id" : "8a80808569151b8601695d35785722e5", "createdBy" : "8a8080ef675086770167508ce8d30000", "createdDate" : "2019-03-08T12:09:39.159+0000", "modifiedBy" : "8a8080ef675086770167508ce8d30000", "modifiedDate" : "2019-03-08T12:09:39.159+0000", "version" : null, "inactive" : false, "location" : "5rTV3lbL", "description" : "5rTV3lbL", "confirmed" : false, "transactionType" : "WITHDRAW" }, "totalPages" : 0, "totalElements" : 0 }

Logs :
2019-03-08 00:09:39 DEBUG [TransfersTransactiontypeWithdrawCreateUserAInitAbact2] : URL [http://54.215.136.217/api/v1/transfers] 2019-03-08 00:09:39 DEBUG [TransfersTransactiontypeWithdrawCreateUserAInitAbact2] : Method [POST] 2019-03-08 00:09:39 DEBUG [TransfersTransactiontypeWithdrawCreateUserAInitAbact2] : Request [{ "confirmed" : false, "createdBy" : "", "createdDate" : "", "description" : "5rTV3lbL", "id" : "", "inactive" : false, "location" : "5rTV3lbL", "modifiedBy" : "", "modifiedDate" : "", "transactionType" : "WITHDRAW", "version" : "" }] 2019-03-08 00:09:39 DEBUG [TransfersTransactiontypeWithdrawCreateUserAInitAbact2] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic YWRtaW5AbmV0YmFua2luZy5pbzphZG1pbjEyMyQ=]}] 2019-03-08 00:09:39 DEBUG [TransfersTransactiontypeWithdrawCreateUserAInitAbact2] : Response [{ "requestId" : "None", "requestTime" : "2019-03-08T12:09:39.166+0000", "errors" : false, "messages" : [ ], "data" : { "id" : "8a80808569151b8601695d35785722e5", "createdBy" : "8a8080ef675086770167508ce8d30000", "createdDate" : "2019-03-08T12:09:39.159+0000", "modifiedBy" : "8a8080ef675086770167508ce8d30000", "modifiedDate" : "2019-03-08T12:09:39.159+0000", "version" : null, "inactive" : false, "location" : "5rTV3lbL", "description" : "5rTV3lbL", "confirmed" : false, "transactionType" : "WITHDRAW" }, "totalPages" : 0, "totalElements" : 0 }] 2019-03-08 00:09:39 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=ZGFkNjVmMjYtMzBlOC00MmM4LWIwNGEtMjMxOGFiNTRjZjI1; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:09:38 GMT]}] 2019-03-08 00:09:39 DEBUG [TransfersTransactiontypeWithdrawCreateUserAInitAbact2] : StatusCode [200] 2019-03-08 00:09:39 DEBUG [TransfersTransactiontypeWithdrawCreateUserAInitAbact2] : Time [1671] 2019-03-08 00:09:39 DEBUG [TransfersTransactiontypeWithdrawCreateUserAInitAbact2] : Size [488] 2019-03-08 00:09:39 INFO [null] : Assertion [@StatusCode == 200 OR @StatusCode == 201] resolved-to [200 == 200 OR 200 == 201] result [Passed] 2019-03-08 00:09:39 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=ZGFkNjVmMjYtMzBlOC00MmM4LWIwNGEtMjMxOGFiNTRjZjI1; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:09:38 GMT]}] 2019-03-08 00:09:39 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=ZGFkNjVmMjYtMzBlOC00MmM4LWIwNGEtMjMxOGFiNTRjZjI1; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:09:38 GMT]}] 2019-03-08 00:09:39 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=ZGFkNjVmMjYtMzBlOC00MmM4LWIwNGEtMjMxOGFiNTRjZjI1; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:09:38 GMT]}] 2019-03-08 00:09:39 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=ZGFkNjVmMjYtMzBlOC00MmM4LWIwNGEtMjMxOGFiNTRjZjI1; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:09:38 GMT]}] 2019-03-08 00:09:44 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypewithdrawUserbDisallowAbact2] : URL [http://54.215.136.217/api/v1/transfers/8a80808569151b8601695d35785722e5] 2019-03-08 00:09:44 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypewithdrawUserbDisallowAbact2] : Method [GET] 2019-03-08 00:09:44 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypewithdrawUserbDisallowAbact2] : Request [] 2019-03-08 00:09:44 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypewithdrawUserbDisallowAbact2] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic dXNlckJAb25saW5lc3VwcG9ydC5pbzphZG1pbjEyMyQ=]}] 2019-03-08 00:09:44 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypewithdrawUserbDisallowAbact2] : Response [{ "requestId" : "None", "requestTime" : "2019-03-08T12:09:44.081+0000", "errors" : false, "messages" : [ ], "data" : { "id" : "8a80808569151b8601695d35785722e5", "createdBy" : "8a8080ef675086770167508ce8d30000", "createdDate" : "2019-03-08T12:09:39.159+0000", "modifiedBy" : "8a8080ef675086770167508ce8d30000", "modifiedDate" : "2019-03-08T12:09:39.159+0000", "version" : null, "inactive" : false, "location" : "5rTV3lbL", "description" : "5rTV3lbL", "confirmed" : false, "transactionType" : "WITHDRAW" }, "totalPages" : 0, "totalElements" : 0 }] 2019-03-08 00:09:44 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypewithdrawUserbDisallowAbact2] : 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=NzE5ZTg3MDItYzMwYS00NDgxLWI3MTAtNGY2NjU2NTQ0ZTll; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:09:43 GMT]}] 2019-03-08 00:09:44 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypewithdrawUserbDisallowAbact2] : StatusCode [200] 2019-03-08 00:09:44 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypewithdrawUserbDisallowAbact2] : Time [4925] 2019-03-08 00:09:44 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypewithdrawUserbDisallowAbact2] : Size [488] 2019-03-08 00:09:44 ERROR [ApiV1TransfersIdGetUseraCreateTransferstransactiontypewithdrawUserbDisallowAbact2] : 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:09:45 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypewithdrawAbstractAbact2] : URL [http://54.215.136.217/api/v1/transfers/8a80808569151b8601695d35785722e5] 2019-03-08 00:09:45 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypewithdrawAbstractAbact2] : Method [DELETE] 2019-03-08 00:09:45 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypewithdrawAbstractAbact2] : Request [null] 2019-03-08 00:09:45 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypewithdrawAbstractAbact2] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic YWRtaW5AbmV0YmFua2luZy5pbzphZG1pbjEyMyQ=]}] 2019-03-08 00:09:45 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypewithdrawAbstractAbact2] : Response [{ "requestId" : "None", "requestTime" : "2019-03-08T12:09:45.743+0000", "errors" : false, "messages" : [ ], "data" : null, "totalPages" : 0, "totalElements" : 0 }] 2019-03-08 00:09:45 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=NDYyYzJkYzItZjVlMi00OTM1LTk2NzMtYjM1YjFmODc1MDIy; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:09:45 GMT]}] 2019-03-08 00:09:45 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypewithdrawAbstractAbact2] : StatusCode [200] 2019-03-08 00:09:45 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypewithdrawAbstractAbact2] : Time [1644] 2019-03-08 00:09:45 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypewithdrawAbstractAbact2] : Size [139] 2019-03-08 00:09:45 INFO [null] : Assertion [@StatusCode == 200] resolved-to [200 == 200] result [Passed]

--- FX Bot ---