asriz7777 / FXSCRIPTS-TEST-AUTOMATION

0 stars 1 forks source link

Vulnerability [ABAC_Level3] : DELETE:/api/v1/accounts/id #351

Open asriz7777 opened 5 years ago

asriz7777 commented 5 years ago

Project : FXABAC TEST

Template : ApiV1AccountsIdDeleteAccountuserbDisallowAbact3

Run Id : 8a80808d698f0d6701698fd9c69b23cb

Job : Default

Env : Default

Category : ABAC_Level3

Tags : [FX Top 10 - API Vulnerability, Data_Access_Control]

Severity : Major

Region : FXLabs/US_WEST_1

Result : fail

Status Code : 405

Headers : {Allow=[GET, POST], 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=NDJjZDRlMzUtYjVmYi00MzJkLTg0ZWEtZmQ1YjBiMjdhZTMx; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:13:07 GMT]}

Endpoint : http://13.56.210.25/api/v1/accounts/

Request :

Response :
{ "timestamp" : "2019-03-18T08:13:07.410+0000", "status" : 405, "error" : "Method Not Allowed", "message" : "Request method 'DELETE' not supported", "path" : "/api/v1/accounts/" }

Logs :
2019-03-18 08:13:05 DEBUG [ OrgCreateUserAInitAbact3] : URL [http://13.56.210.25/api/v1/orgs] 2019-03-18 08:13:05 DEBUG [ OrgCreateUserAInitAbact3] : Method [POST] 2019-03-18 08:13:05 DEBUG [ OrgCreateUserAInitAbact3] : Request [{ "billingEmail" : "DC5u6l0V", "company" : "Gislason, Gislason and Gislason", "createdBy" : "", "createdDate" : "", "description" : "DC5u6l0V", "id" : "", "inactive" : false, "location" : "DC5u6l0V", "modifiedBy" : "", "modifiedDate" : "", "name" : "DC5u6l0V", "orgPlan" : "FREE", "orgType" : "TEAM", "version" : "" }] 2019-03-18 08:13:05 DEBUG [ OrgCreateUserAInitAbact3] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic RlhMYWJzLy9hZG1pbkBmeGxhYnMuaW86YWRtaW4xMjMk]}] 2019-03-18 08:13:05 DEBUG [ OrgCreateUserAInitAbact3] : Response [{ "requestId" : "None", "requestTime" : "2019-03-18T08:13:05.839+0000", "errors" : false, "messages" : [ ], "data" : { "id" : "8a808085698f12b501698fdc7dae0783", "createdBy" : "8a8080ce6708016501670804cd590000", "createdDate" : "2019-03-18T08:13:05.838+0000", "modifiedBy" : "8a8080ce6708016501670804cd590000", "modifiedDate" : "2019-03-18T08:13:05.838+0000", "version" : null, "inactive" : false, "name" : "DC5u6l0V", "description" : "DC5u6l0V", "orgType" : "ENTERPRISE", "billingEmail" : "DC5u6l0V", "company" : "Gislason, Gislason and Gislason", "location" : "DC5u6l0V", "orgPlan" : "ENTERPRISE" }, "totalPages" : 0, "totalElements" : 0 }] 2019-03-18 08:13:05 DEBUG [ OrgCreateUserAInitAbact3] : 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=MDEzZDA0MzktMTI2OC00ZjNhLWI0MTUtZDk1NjdhNTU3NzNh; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:13:05 GMT]}] 2019-03-18 08:13:05 DEBUG [ OrgCreateUserAInitAbact3] : StatusCode [200] 2019-03-18 08:13:05 DEBUG [ OrgCreateUserAInitAbact3] : Time [987] 2019-03-18 08:13:05 DEBUG [ OrgCreateUserAInitAbact3] : Size [575] 2019-03-18 08:13:05 INFO [null] : Assertion [@StatusCode == 200 OR @StatusCode == 201] resolved-to [200 == 200 OR 200 == 201] result [Passed] 2019-03-18 08:13:05 DEBUG [OrgCreateUserAInitAbact3_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=MDEzZDA0MzktMTI2OC00ZjNhLWI0MTUtZDk1NjdhNTU3NzNh; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:13:05 GMT]}] 2019-03-18 08:13:05 DEBUG [OrgCreateUserAInitAbact3_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=MDEzZDA0MzktMTI2OC00ZjNhLWI0MTUtZDk1NjdhNTU3NzNh; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:13:05 GMT]}] 2019-03-18 08:13:05 DEBUG [OrgCreateUserAInitAbact3_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=MDEzZDA0MzktMTI2OC00ZjNhLWI0MTUtZDk1NjdhNTU3NzNh; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:13:05 GMT]}] 2019-03-18 08:13:05 DEBUG [OrgCreateUserAInitAbact3_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=MDEzZDA0MzktMTI2OC00ZjNhLWI0MTUtZDk1NjdhNTU3NzNh; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:13:05 GMT]}] 2019-03-18 08:13:06 DEBUG [AccountCreateUserAInitAbact3] : URL [http://13.56.210.25/api/v1/accounts] 2019-03-18 08:13:06 DEBUG [AccountCreateUserAInitAbact3] : Method [POST] 2019-03-18 08:13:06 DEBUG [AccountCreateUserAInitAbact3] : Request [{ "accessKey" : "v9ra6cF1", "accountType" : "Local", "createdBy" : "", "createdDate" : "", "id" : "", "inactive" : false, "modifiedBy" : "", "modifiedDate" : "", "name" : "v9ra6cF1", "org" : { "id" : "8a808085698f12b501698fdc7dae0783", "createdBy" : "8a8080ce6708016501670804cd590000", "createdDate" : "2019-03-18T08:13:05.838+0000", "modifiedBy" : "8a8080ce6708016501670804cd590000", "modifiedDate" : "2019-03-18T08:13:05.838+0000", "version" : null, "inactive" : false, "name" : "DC5u6l0V", "description" : "DC5u6l0V", "orgType" : "ENTERPRISE", "billingEmail" : "DC5u6l0V", "company" : "Gislason, Gislason and Gislason", "location" : "DC5u6l0V", "orgPlan" : "ENTERPRISE" }, "prop1" : "v9ra6cF1", "prop2" : "v9ra6cF1", "prop3" : "v9ra6cF1", "region" : "v9ra6cF1", "secretKey" : "v9ra6cF1", "version" : "" }] 2019-03-18 08:13:06 DEBUG [AccountCreateUserAInitAbact3] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic RlhMYWJzLy9hZG1pbkBmeGxhYnMuaW86YWRtaW4xMjMk]}] 2019-03-18 08:13:06 DEBUG [AccountCreateUserAInitAbact3] : Response [{ "requestId" : "None", "requestTime" : "2019-03-18T08:13:06.845+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : null, "value" : "Invalid Data" } ], "data" : null, "totalPages" : 0, "totalElements" : 0 }] 2019-03-18 08:13:06 DEBUG [AccountCreateUserAInitAbact3] : 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=ODc5ZjA3ODItYzM3Mi00YzM3LWE0MmUtZDA2NzFlNzFhZGEw; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:13:06 GMT]}] 2019-03-18 08:13:06 DEBUG [AccountCreateUserAInitAbact3] : StatusCode [200] 2019-03-18 08:13:06 DEBUG [AccountCreateUserAInitAbact3] : Time [989] 2019-03-18 08:13:06 DEBUG [AccountCreateUserAInitAbact3] : Size [188] 2019-03-18 08:13:06 INFO [null] : Assertion [@StatusCode == 200 OR @StatusCode == 201] resolved-to [200 == 200 OR 200 == 201] result [Passed] 2019-03-18 08:13:06 DEBUG [AccountCreateUserAInitAbact3_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=ODc5ZjA3ODItYzM3Mi00YzM3LWE0MmUtZDA2NzFlNzFhZGEw; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:13:06 GMT]}] 2019-03-18 08:13:06 DEBUG [AccountCreateUserAInitAbact3_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=ODc5ZjA3ODItYzM3Mi00YzM3LWE0MmUtZDA2NzFlNzFhZGEw; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:13:06 GMT]}] 2019-03-18 08:13:06 DEBUG [AccountCreateUserAInitAbact3_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=ODc5ZjA3ODItYzM3Mi00YzM3LWE0MmUtZDA2NzFlNzFhZGEw; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:13:06 GMT]}] 2019-03-18 08:13:06 DEBUG [AccountCreateUserAInitAbact3_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=ODc5ZjA3ODItYzM3Mi00YzM3LWE0MmUtZDA2NzFlNzFhZGEw; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:13:06 GMT]}] 2019-03-18 08:13:07 DEBUG [ApiV1AccountsIdDeleteAccountuserbDisallowAbact3] : URL [http://13.56.210.25/api/v1/accounts/] 2019-03-18 08:13:07 DEBUG [ApiV1AccountsIdDeleteAccountuserbDisallowAbact3] : Method [DELETE] 2019-03-18 08:13:07 DEBUG [ApiV1AccountsIdDeleteAccountuserbDisallowAbact3] : Request [] 2019-03-18 08:13:07 DEBUG [ApiV1AccountsIdDeleteAccountuserbDisallowAbact3] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic T1JHQi8vdXNlckJAdGVzdGxhYnMuaW86b3JnMTIzNCQ=]}] 2019-03-18 08:13:07 DEBUG [ApiV1AccountsIdDeleteAccountuserbDisallowAbact3] : Response [{ "timestamp" : "2019-03-18T08:13:07.410+0000", "status" : 405, "error" : "Method Not Allowed", "message" : "Request method 'DELETE' not supported", "path" : "/api/v1/accounts/" }] 2019-03-18 08:13:07 DEBUG [ApiV1AccountsIdDeleteAccountuserbDisallowAbact3] : Response-Headers [{Allow=[GET, POST], 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=NDJjZDRlMzUtYjVmYi00MzJkLTg0ZWEtZmQ1YjBiMjdhZTMx; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:13:07 GMT]}] 2019-03-18 08:13:07 DEBUG [ApiV1AccountsIdDeleteAccountuserbDisallowAbact3] : StatusCode [405] 2019-03-18 08:13:07 DEBUG [ApiV1AccountsIdDeleteAccountuserbDisallowAbact3] : Time [551] 2019-03-18 08:13:07 DEBUG [ApiV1AccountsIdDeleteAccountuserbDisallowAbact3] : Size [163] 2019-03-18 08:13:07 ERROR [ApiV1AccountsIdDeleteAccountuserbDisallowAbact3] : Assertion [@StatusCode == 401 OR @StatusCode == 403] resolved-to [405 == 401 OR 405 == 403] result [Failed] 2019-03-18 08:13:08 DEBUG [ApiV1AccountsIdDeleteAccountabact3] : URL [http://13.56.210.25/api/v1/accounts/] 2019-03-18 08:13:08 DEBUG [ApiV1AccountsIdDeleteAccountabact3] : Method [DELETE] 2019-03-18 08:13:08 DEBUG [ApiV1AccountsIdDeleteAccountabact3] : Request [null] 2019-03-18 08:13:08 DEBUG [ApiV1AccountsIdDeleteAccountabact3] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic RlhMYWJzLy9hZG1pbkBmeGxhYnMuaW86YWRtaW4xMjMk]}] 2019-03-18 08:13:08 DEBUG [ApiV1AccountsIdDeleteAccountabact3] : Response [{ "timestamp" : "2019-03-18T08:13:08.496+0000", "status" : 405, "error" : "Method Not Allowed", "message" : "Request method 'DELETE' not supported", "path" : "/api/v1/accounts/" }] 2019-03-18 08:13:08 DEBUG [ApiV1AccountsIdDeleteAccountabact3] : Response-Headers [{Allow=[GET, POST], 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=MmJhMTI0YjMtNmI2Yy00YmMxLWJmYjItMzE0MzQxNGM3YWMw; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:13:08 GMT]}] 2019-03-18 08:13:08 DEBUG [ApiV1AccountsIdDeleteAccountabact3] : StatusCode [405] 2019-03-18 08:13:08 DEBUG [ApiV1AccountsIdDeleteAccountabact3] : Time [1085] 2019-03-18 08:13:08 DEBUG [ApiV1AccountsIdDeleteAccountabact3] : Size [163] 2019-03-18 08:13:08 ERROR [null] : Assertion [@StatusCode == 200] resolved-to [405 == 200] result [Failed] 2019-03-18 08:13:09 DEBUG [ ApiV1OrgsIdDeleteAbact3] : URL [http://13.56.210.25/api/v1/orgs/] 2019-03-18 08:13:09 DEBUG [ ApiV1OrgsIdDeleteAbact3] : Method [DELETE] 2019-03-18 08:13:09 DEBUG [ ApiV1OrgsIdDeleteAbact3] : Request [null] 2019-03-18 08:13:09 DEBUG [ ApiV1OrgsIdDeleteAbact3] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic RlhMYWJzLy9hZG1pbkBmeGxhYnMuaW86YWRtaW4xMjMk]}] 2019-03-18 08:13:09 DEBUG [ ApiV1OrgsIdDeleteAbact3] : Response [{ "timestamp" : "2019-03-18T08:13:09.127+0000", "status" : 405, "error" : "Method Not Allowed", "message" : "Request method 'DELETE' not supported", "path" : "/api/v1/orgs/" }] 2019-03-18 08:13:09 DEBUG [ ApiV1OrgsIdDeleteAbact3] : Response-Headers [{Allow=[GET, POST], 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=Mzc0YTA5NGItNWNiNS00NTg5LWI0MTQtMzIzMWU5YmM5Y2M1; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:13:08 GMT]}] 2019-03-18 08:13:09 DEBUG [ ApiV1OrgsIdDeleteAbact3] : StatusCode [405] 2019-03-18 08:13:09 DEBUG [ ApiV1OrgsIdDeleteAbact3] : Time [629] 2019-03-18 08:13:09 DEBUG [ ApiV1OrgsIdDeleteAbact3] : Size [159] 2019-03-18 08:13:09 ERROR [null] : Assertion [@StatusCode == 200] resolved-to [405 == 200] result [Failed]

--- FX Bot ---