asriz7777 / FX-Scripts-Functional

0 stars 0 forks source link

NET BANKING APP : ApiV1SavingsTransactionPutRoleAdminDisallowedRbac #102

Open asriz7777 opened 5 years ago

asriz7777 commented 5 years ago

Project : NET BANKING APP

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], Set-Cookie=[SESSION=ZTkwNjgxZTctZTBhMC00MzcwLWE3M2YtMGUxMWM0OGE5MTQw; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Thu, 21 Feb 2019 03:43:25 GMT]}

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

Request :
{ "amount" : "2106", "availableBalance" : "1964709566", "createdBy" : "", "createdDate" : "", "description" : "o0UdlkOK", "id" : "", "inactive" : false, "modifiedBy" : "", "modifiedDate" : "", "status" : "o0UdlkOK", "type" : "o0UdlkOK", "user" : { "createdBy" : "", "createdDate" : "", "id" : "", "inactive" : false, "modifiedBy" : "", "modifiedDate" : "", "name" : "o0UdlkOK", "version" : "" }, "version" : "" }

Response :
{ "requestId" : "None", "requestTime" : "2019-02-21T03:43:26.581+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Unable to find com.fxlabs.issues.dao.entity.users.Users with id ; nested exception is javax.persistence.EntityNotFoundException: Unable to find com.fxlabs.issues.dao.entity.users.Users with id " } ], "data" : null, "totalPages" : 0, "totalElements" : 0 }

Logs :
2019-02-21 03:43:26 DEBUG [ApiV1SavingsTransactionPutRoleAdminDisallowedRbac] : URL [http://54.215.136.217/api/v1/savings-transaction] 2019-02-21 03:43:26 DEBUG [ApiV1SavingsTransactionPutRoleAdminDisallowedRbac] : Method [PUT] 2019-02-21 03:43:26 DEBUG [ApiV1SavingsTransactionPutRoleAdminDisallowedRbac] : Request [{ "amount" : "2106", "availableBalance" : "1964709566", "createdBy" : "", "createdDate" : "", "description" : "o0UdlkOK", "id" : "", "inactive" : false, "modifiedBy" : "", "modifiedDate" : "", "status" : "o0UdlkOK", "type" : "o0UdlkOK", "user" : { "createdBy" : "", "createdDate" : "", "id" : "", "inactive" : false, "modifiedBy" : "", "modifiedDate" : "", "name" : "o0UdlkOK", "version" : "" }, "version" : "" }] 2019-02-21 03:43:26 DEBUG [ApiV1SavingsTransactionPutRoleAdminDisallowedRbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic dXNlcjRAb25saW5lc3VwcG9ydC5pbzphZG1pbjEyMyQ=]}] 2019-02-21 03:43:26 DEBUG [ApiV1SavingsTransactionPutRoleAdminDisallowedRbac] : Response [{ "requestId" : "None", "requestTime" : "2019-02-21T03:43:26.581+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Unable to find com.fxlabs.issues.dao.entity.users.Users with id ; nested exception is javax.persistence.EntityNotFoundException: Unable to find com.fxlabs.issues.dao.entity.users.Users with id " } ], "data" : null, "totalPages" : 0, "totalElements" : 0 }] 2019-02-21 03:43:26 DEBUG [ApiV1SavingsTransactionPutRoleAdminDisallowedRbac] : 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=ZTkwNjgxZTctZTBhMC00MzcwLWE3M2YtMGUxMWM0OGE5MTQw; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Thu, 21 Feb 2019 03:43:25 GMT]}] 2019-02-21 03:43:26 DEBUG [ApiV1SavingsTransactionPutRoleAdminDisallowedRbac] : StatusCode [200] 2019-02-21 03:43:26 DEBUG [ApiV1SavingsTransactionPutRoleAdminDisallowedRbac] : Time [2230] 2019-02-21 03:43:26 DEBUG [ApiV1SavingsTransactionPutRoleAdminDisallowedRbac] : Size [367] 2019-02-21 03:43:26 ERROR [ApiV1SavingsTransactionPutRoleAdminDisallowedRbac] : Assertion [@StatusCode == 401 OR @StatusCode == 403] resolved-to [200 == 401 OR 200 == 403] result [Failed]

--- FX Bot ---