asriz7777 / FX-Scripts-Functional

0 stars 0 forks source link

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

Open asriz7777 opened 5 years ago

asriz7777 commented 5 years ago

Project : testapp

Template : ApiV1TransfersIdGetUseraCreateTransferstransactiontypetransferUsercDisallowAbact2

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

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

Request :

Response :
{ "requestId" : "None", "requestTime" : "2019-03-08T12:09:53.880+0000", "errors" : false, "messages" : [ ], "data" : { "id" : "8a80808569151b8601695d35aa8a2313", "createdBy" : "8a8080ef675086770167508ce8d30000", "createdDate" : "2019-03-08T12:09:52.010+0000", "modifiedBy" : "8a8080ef675086770167508ce8d30000", "modifiedDate" : "2019-03-08T12:09:52.010+0000", "version" : null, "inactive" : false, "location" : "nSyxuy9n", "description" : "nSyxuy9n", "confirmed" : false, "transactionType" : "TRANSFER" }, "totalPages" : 0, "totalElements" : 0 }

Logs :
2019-03-08 00:09:52 DEBUG [TransfersTransactiontypeTransferCreateUserAInitAbact2] : URL [http://54.215.136.217/api/v1/transfers] 2019-03-08 00:09:52 DEBUG [TransfersTransactiontypeTransferCreateUserAInitAbact2] : Method [POST] 2019-03-08 00:09:52 DEBUG [TransfersTransactiontypeTransferCreateUserAInitAbact2] : Request [{ "confirmed" : false, "createdBy" : "", "createdDate" : "", "description" : "nSyxuy9n", "id" : "", "inactive" : false, "location" : "nSyxuy9n", "modifiedBy" : "", "modifiedDate" : "", "transactionType" : "TRANSFER", "version" : "" }] 2019-03-08 00:09:52 DEBUG [TransfersTransactiontypeTransferCreateUserAInitAbact2] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic YWRtaW5AbmV0YmFua2luZy5pbzphZG1pbjEyMyQ=]}] 2019-03-08 00:09:52 DEBUG [TransfersTransactiontypeTransferCreateUserAInitAbact2] : Response [{ "requestId" : "None", "requestTime" : "2019-03-08T12:09:52.021+0000", "errors" : false, "messages" : [ ], "data" : { "id" : "8a80808569151b8601695d35aa8a2313", "createdBy" : "8a8080ef675086770167508ce8d30000", "createdDate" : "2019-03-08T12:09:52.010+0000", "modifiedBy" : "8a8080ef675086770167508ce8d30000", "modifiedDate" : "2019-03-08T12:09:52.010+0000", "version" : null, "inactive" : false, "location" : "nSyxuy9n", "description" : "nSyxuy9n", "confirmed" : false, "transactionType" : "TRANSFER" }, "totalPages" : 0, "totalElements" : 0 }] 2019-03-08 00:09:52 DEBUG [TransfersTransactiontypeTransferCreateUserAInitAbact2] : 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=YWM4N2M1ZTAtNDkxNS00NDY2LTg0MTItNTA2OWRkOTkwMDA4; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:09:51 GMT]}] 2019-03-08 00:09:52 DEBUG [TransfersTransactiontypeTransferCreateUserAInitAbact2] : StatusCode [200] 2019-03-08 00:09:52 DEBUG [TransfersTransactiontypeTransferCreateUserAInitAbact2] : Time [2006] 2019-03-08 00:09:52 DEBUG [TransfersTransactiontypeTransferCreateUserAInitAbact2] : Size [488] 2019-03-08 00:09:52 INFO [null] : Assertion [@StatusCode == 200 OR @StatusCode == 201] resolved-to [200 == 200 OR 200 == 201] result [Passed] 2019-03-08 00:09:52 DEBUG [TransfersTransactiontypeTransferCreateUserAInitAbact2_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=YWM4N2M1ZTAtNDkxNS00NDY2LTg0MTItNTA2OWRkOTkwMDA4; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:09:51 GMT]}] 2019-03-08 00:09:52 DEBUG [TransfersTransactiontypeTransferCreateUserAInitAbact2_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=YWM4N2M1ZTAtNDkxNS00NDY2LTg0MTItNTA2OWRkOTkwMDA4; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:09:51 GMT]}] 2019-03-08 00:09:52 DEBUG [TransfersTransactiontypeTransferCreateUserAInitAbact2_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=YWM4N2M1ZTAtNDkxNS00NDY2LTg0MTItNTA2OWRkOTkwMDA4; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:09:51 GMT]}] 2019-03-08 00:09:52 DEBUG [TransfersTransactiontypeTransferCreateUserAInitAbact2_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=YWM4N2M1ZTAtNDkxNS00NDY2LTg0MTItNTA2OWRkOTkwMDA4; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:09:51 GMT]}] 2019-03-08 00:09:53 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypetransferUsercDisallowAbact2] : URL [http://54.215.136.217/api/v1/transfers/8a80808569151b8601695d35aa8a2313] 2019-03-08 00:09:53 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypetransferUsercDisallowAbact2] : Method [GET] 2019-03-08 00:09:53 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypetransferUsercDisallowAbact2] : Request [] 2019-03-08 00:09:53 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypetransferUsercDisallowAbact2] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic dXNlckNAb25saW5lc3VwcG9ydC5pbzphZG1pbjEyMyQ=]}] 2019-03-08 00:09:53 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypetransferUsercDisallowAbact2] : Response [{ "requestId" : "None", "requestTime" : "2019-03-08T12:09:53.880+0000", "errors" : false, "messages" : [ ], "data" : { "id" : "8a80808569151b8601695d35aa8a2313", "createdBy" : "8a8080ef675086770167508ce8d30000", "createdDate" : "2019-03-08T12:09:52.010+0000", "modifiedBy" : "8a8080ef675086770167508ce8d30000", "modifiedDate" : "2019-03-08T12:09:52.010+0000", "version" : null, "inactive" : false, "location" : "nSyxuy9n", "description" : "nSyxuy9n", "confirmed" : false, "transactionType" : "TRANSFER" }, "totalPages" : 0, "totalElements" : 0 }] 2019-03-08 00:09:53 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypetransferUsercDisallowAbact2] : 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=ODdjZTJiMDctMDNlMC00NTYxLTk1MmUtMDgwN2E1ZTBjMWUz; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:09:52 GMT]}] 2019-03-08 00:09:53 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypetransferUsercDisallowAbact2] : StatusCode [200] 2019-03-08 00:09:53 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypetransferUsercDisallowAbact2] : Time [1910] 2019-03-08 00:09:53 DEBUG [ApiV1TransfersIdGetUseraCreateTransferstransactiontypetransferUsercDisallowAbact2] : Size [488] 2019-03-08 00:09:53 ERROR [ApiV1TransfersIdGetUseraCreateTransferstransactiontypetransferUsercDisallowAbact2] : 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:58 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypetransferAbstractAbact2] : URL [http://54.215.136.217/api/v1/transfers/8a80808569151b8601695d35aa8a2313] 2019-03-08 00:09:58 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypetransferAbstractAbact2] : Method [DELETE] 2019-03-08 00:09:58 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypetransferAbstractAbact2] : Request [null] 2019-03-08 00:09:58 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypetransferAbstractAbact2] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic YWRtaW5AbmV0YmFua2luZy5pbzphZG1pbjEyMyQ=]}] 2019-03-08 00:09:58 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypetransferAbstractAbact2] : Response [{ "requestId" : "None", "requestTime" : "2019-03-08T12:09:58.957+0000", "errors" : false, "messages" : [ ], "data" : null, "totalPages" : 0, "totalElements" : 0 }] 2019-03-08 00:09:58 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypetransferAbstractAbact2] : 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=NGRlYTQwNmUtMDUxNi00YjExLThkOGEtYjNjMDM2YjU0OThi; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Fri, 08 Mar 2019 12:09:58 GMT]}] 2019-03-08 00:09:58 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypetransferAbstractAbact2] : StatusCode [200] 2019-03-08 00:09:58 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypetransferAbstractAbact2] : Time [5016] 2019-03-08 00:09:58 DEBUG [ApiV1TransfersIdDeleteTransferstransactiontypetransferAbstractAbact2] : Size [139] 2019-03-08 00:09:58 INFO [null] : Assertion [@StatusCode == 200] resolved-to [200 == 200] result [Passed]

--- FX Bot ---