Closed intesar closed 4 years ago
Message : This issue is manually closed from FX control plane.
Title: ABAC_Level1 Vulnerability on PUT:/api/v1/primary-account/primary-account Project: NetBanking API Description:
Assertion Name: Attribute Based Access Control 1 (ABAC) ( 1 )
Title: ABAC_Level1 Vulnerability on PUT:/api/v1/primary-account/primary-account Project: NetBanking API Description: The ABAC exploit allows an attacker to read, modify, delete, add and perform actions on customer/un-authorized data.
Assertion Name: Attribute Based Access Control 1 (ABAC) ( 1 )Overview: Access Control (or Authorization) is the process of granting or denying specific requests from a user, program, or process. Access control also involves the act of granting and revoking those privileges. Attribute Based Access Control (ABAC) will grant or deny user requests based on arbitrary attributes of the user and arbitrary attributes of the object, and environment conditions that may be globally recognized and more relevant to the policies at hand.
'Attribute-based-access-control 1' identifies top-level/non-dependent resource/data/record vulnerabilities. Looks for private user/account data being illegally read, written, updated, deleted or operated by other users or tenants or accounts.
This scanner requires a private-account/user to create private data/resources e.g. UserA. And it also requires other users who shouldn't have any access to UserA's data like UserB, UserC, & UserD based on your App multi-tenancy model. e.g. UserA can be a user from tenant/org-a and UserB can be a user in tenant-b and UserC can be a user in tenant-c with admin privileges.
APIs tend to expose endpoints that handle object identifiers, creating a wide attack surface Level Access Control issue. Object-level authorization checks should be considered in every function that accesses a data source using input from the user.
Severity: OWASP 2019 API Top 10 ranks ABAC vulnerabilities at Top 1 position and is named Broken Object Level Authorization. ( 2 )
Vulnerability Impact: With flawed or broken ABAC security control policy in place, The following are some of the consequences.
Remediation: The following techniques may be checked for ensuring RBAC is in place ( 2 ) ( 3 ) ( 4 ).
Risk: ABAC_Level1 Severity: High API Endpoint: http://95.217.118.53:8080/api/v1/primary-account/primary-account Environment: Master Playbook: ApiV1PrimaryAccountPrimaryAccountPutUseraCreatePrimaryaccountUsercDisallowAbac Researcher: [apisec Bot] QUICK TIPS Suggestion: Add access-control checks on incoming requests against all data calls. Effort Estimate: 2.0 Wire Logs: 08:43:44 [D] [PACUAIAbac] : URL [http://95.217.118.53:8080/api/v1/primary-account/primary-account] 08:43:44 [D] [PACUAIAbac] : Method [POST] 08:43:44 [D] [PACUAIAbac] : Auth [UserA] 08:43:44 [D] [PACUAIAbac] : Request [{ "accountBalance" : "2052885442", "accountNumber" : "2052885442", "accountType" : "CREDIT", "createdBy" : "", "createdDate" : "", "id" : "", "inactive" : false, "modifiedBy" : "", "modifiedDate" : "", "version" : "" }] 08:43:44 [D] [PACUAIAbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[**********]}] 08:43:44 [D] [PACUAIAbac] : Response [{ "requestId" : "None", "requestTime" : "2020-09-02T20:43:44.159+0000", "errors" : false, "messages" : [ ], "data" : { "id" : "2c928084730547e80174508fa09b1006", "createdBy" : "2c928085730548680173054c9f720003", "createdDate" : "2020-09-02T20:43:44.155+0000", "modifiedBy" : "2c928085730548680173054c9f720003", "modifiedDate" : "2020-09-02T20:43:44.155+0000", "version" : null, "inactive" : false, "accountNumber" : 1040015090, "accountBalance" : 1040015090, "accountType" : "CREDIT" }, "totalPages" : 0, "totalElements" : 0 }] 08:43:44 [D] [PACUAIAbac] : 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=ZTQ5MmJiM2ItY2JjYy00ZWI4LWFlNzgtZWI1MTVkZmNjNGZi; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 02 Sep 2020 20:43:44 GMT]}] 08:43:44 [D] [PACUAIAbac] : StatusCode [200] 08:43:44 [D] [PACUAIAbac] : Time [280] 08:43:44 [D] [PACUAIAbac] : Size [472] 08:43:44 [I] [PACUAIAbac] : Assertion [@StatusCode == 200 AND @Response.errors == false] resolved-to [200 == 200 AND false == false] result [Passed] 08:43:44 [D] [PACUAIAHeaders] : 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=ZTQ5MmJiM2ItY2JjYy00ZWI4LWFlNzgtZWI1MTVkZmNjNGZi; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 02 Sep 2020 20:43:44 GMT]}] 08:43:44 [D] [PACUAIAHeaders] : 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=ZTQ5MmJiM2ItY2JjYy00ZWI4LWFlNzgtZWI1MTVkZmNjNGZi; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 02 Sep 2020 20:43:44 GMT]}] 08:43:44 [D] [ PACUAIA]] : 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=ZTQ5MmJiM2ItY2JjYy00ZWI4LWFlNzgtZWI1MTVkZmNjNGZi; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 02 Sep 2020 20:43:44 GMT]}] 08:43:44 [D] [ PACUAIA]] : 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=ZTQ5MmJiM2ItY2JjYy00ZWI4LWFlNzgtZWI1MTVkZmNjNGZi; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 02 Sep 2020 20:43:44 GMT]}] 08:43:44 [D] [AVPAPAPUCPUDAbac] : URL [http://95.217.118.53:8080/api/v1/primary-account/primary-account] 08:43:44 [D] [AVPAPAPUCPUDAbac] : Method [PUT] 08:43:44 [D] [AVPAPAPUCPUDAbac] : Auth [UserC] 08:43:44 [D] [AVPAPAPUCPUDAbac] : Request [{ "accountBalance" : "1734859713", "accountNumber" : "1734859713", "accountType" : "CREDIT", "createdBy" : "", "createdDate" : "", "id" : "None", "inactive" : false, "modifiedBy" : "", "modifiedDate" : "", "version" : "" }] 08:43:44 [D] [AVPAPAPUCPUDAbac] : Request-Headers [{Accept=[application/json], Content-Type=[application/json], Authorization=[**********]}] 08:43:44 [D] [AVPAPAPUCPUDAbac] : Response [{ "requestId" : "None", "requestTime" : "2020-09-02T20:43:44.363+0000", "errors" : false, "messages" : [ ], "data" : { "id" : "2c928084730547e80174508fa167100c", "createdBy" : "2c928085730548680173054c9f720004", "createdDate" : "2020-09-02T20:43:44.359+0000", "modifiedBy" : "2c928085730548680173054c9f720004", "modifiedDate" : "2020-09-02T20:43:44.359+0000", "version" : null, "inactive" : false, "accountNumber" : 1993936061, "accountBalance" : 1993936061, "accountType" : "CREDIT" }, "totalPages" : 0, "totalElements" : 0 }] 08:43:44 [D] [AVPAPAPUCPUDAbac] : 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=NWJhYzFmZTQtNDEyNy00Yjc3LWE2YWEtZDBlZWU1YjE4ZDFm; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 02 Sep 2020 20:43:44 GMT]}] 08:43:44 [D] [AVPAPAPUCPUDAbac] : StatusCode [200] 08:43:44 [D] [AVPAPAPUCPUDAbac] : Time [200] 08:43:44 [D] [AVPAPAPUCPUDAbac] : Size [472] 08:43:44 [E] [AVPAPAPUCPUDAbac] : Assertion [@StatusCode == 401 OR @StatusCode == 404 OR @Response.errors == true] resolved-to [200 == 401 OR 200 == 404 OR false == true] result [Failed] 08:43:44 [D] [AVPAPAIDPAAbac] : URL [http://95.217.118.53:8080/api/v1/primary-account/primary-account/2c928084730547e80174508fa09b1006] 08:43:44 [D] [AVPAPAIDPAAbac] : Method [DELETE] 08:43:44 [D] [AVPAPAIDPAAbac] : Request [null] 08:43:44 [D] [AVPAPAIDPAAbac] : Auth [UserA] 08:43:44 [D] [AVPAPAIDPAAbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic dXNlcjFAbmV0YmFua2luZy5pbzphZG1pbjEyMyQ=]}] 08:43:44 [D] [AVPAPAIDPAAbac] : Response [{ "requestId" : "None", "requestTime" : "2020-09-02T20:43:44.561+0000", "errors" : false, "messages" : [ ], "data" : true, "totalPages" : 0, "totalElements" : 0 }] 08:43:44 [D] [AVPAPAIDPAAbac] : 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=YzFlNDU0YTYtY2FmZC00MTk4LWEwMGQtZTZmNzA2YWU0NmE3; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 02 Sep 2020 20:43:44 GMT]}] 08:43:44 [D] [AVPAPAIDPAAbac] : StatusCode [200] 08:43:44 [D] [AVPAPAIDPAAbac] : Time [198] 08:43:44 [D] [AVPAPAIDPAAbac] : Size [139] 08:43:44 [I] [AVPAPAPUCPUDAbac] : Assertion [@StatusCode == 200] resolved-to [200 == 200] result [Passed] IMPORTANT LINKS Vulnerability Details: https://cloud.fxlabs.io/#/app/projects/8a8081766fc3e2a1016fc421d6e55a13/recommendations/8a8081a4743534b60174508fa4765cdc/details Project: https://cloud.fxlabs.io/#/app/projects/8a8081766fc3e2a1016fc421d6e55a13/jobs Environment: https://cloud.fxlabs.io/#/app/projects/8a8081766fc3e2a1016fc421d6e55a13/environments/8a8081766fc3e2a1016fc421d7155a15/edit Scan Dashboard: https://cloud.fxlabs.io/#/app/projects/8a8081766fc3e2a1016fc421d6e55a13/jobs/8a8081766fc3e2a1016fc4230f426628/runs/8a8081a4743534b60174508f7a5c5cd7 Playbook: https://cloud.fxlabs.io/#/app/projects/8a8081766fc3e2a1016fc421d6e55a13/template/ApiV1PrimaryAccountPrimaryAccountPutUseraCreatePrimaryaccountUsercDisallowAbac Coverage: https://cloud.fxlabs.io/#/app/projects/8a8081766fc3e2a1016fc421d6e55a13/configuration Code Sample: https://cloud.fxlabs.io/#/app/projects/8a8081766fc3e2a1016fc421d6e55a13/recommendations/8a8081a4743534b60174508fa4765cdc/codesamples PS: Please contact support@apisec.ai for apisec access and login issues. --- apisec Bot ---