asriz7777 / FXSCRIPTS-TEST-AUTOMATION

0 stars 1 forks source link

Vulnerability [ABAC_Level1] : PUT:/api/v1/orgs/{id} #322

Open asriz7777 opened 5 years ago

asriz7777 commented 5 years ago

Project : FXABAC TEST

Template : ApiV1OrgsIdPutUseraCreateOrgUserbDisallowAbac

Run Id : 8a80808d698f0d6701698fd9c69b23cb

Job : Default

Env : Default

Category : ABAC_Level1

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

Endpoint : http://13.56.210.25/api/v1/orgs/8a808085698f12b501698fdbf0db0703

Request :
{ "billingEmail" : "juana.parisian@yahoo.com", "company" : "Schumm, Schumm and Schumm", "createdBy" : "", "createdDate" : "", "description" : "NFXccszO", "id" : "8a808085698f12b501698fdbf0db0703", "inactive" : false, "location" : "NFXccszO", "modifiedBy" : "", "modifiedDate" : "", "name" : "NFXccszO", "orgPlan" : "FREE", "orgType" : "ENTERPRISE", "version" : "" }

Response :
{ "requestId" : "None", "requestTime" : "2019-03-18T08:12:31.041+0000", "errors" : false, "messages" : [ ], "data" : { "id" : "8a808085698f12b501698fdbf0db0703", "createdBy" : "", "createdDate" : null, "modifiedBy" : "8a80802c685a79e701685a92e68a0342", "modifiedDate" : "2019-03-18T08:12:31.037+0000", "version" : null, "inactive" : false, "name" : "NFXccszO", "description" : "NFXccszO", "orgType" : "ENTERPRISE", "billingEmail" : "juana.parisian@yahoo.com", "company" : "Schumm, Schumm and Schumm", "location" : "NFXccszO", "orgPlan" : "FREE" }, "totalPages" : 0, "totalElements" : 0 }

Logs :
2019-03-18 08:12:29 DEBUG [ OrgCreateUserAInitAbac] : URL [http://13.56.210.25/api/v1/orgs] 2019-03-18 08:12:29 DEBUG [ OrgCreateUserAInitAbac] : Method [POST] 2019-03-18 08:12:29 DEBUG [ OrgCreateUserAInitAbac] : Request [{ "billingEmail" : "dagmar.weber@yahoo.com", "company" : "Farrell, Farrell and Farrell", "createdBy" : "", "createdDate" : "", "description" : "GivBnyjK", "id" : "", "inactive" : false, "location" : "GivBnyjK", "modifiedBy" : "", "modifiedDate" : "", "name" : "GivBnyjK", "orgPlan" : "FREE", "orgType" : "ENTERPRISE", "version" : "" }] 2019-03-18 08:12:29 DEBUG [ OrgCreateUserAInitAbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic RlhMYWJzLy9hZG1pbkBmeGxhYnMuaW86YWRtaW4xMjMk]}] 2019-03-18 08:12:29 DEBUG [ OrgCreateUserAInitAbac] : Response [{ "requestId" : "None", "requestTime" : "2019-03-18T08:12:29.795+0000", "errors" : false, "messages" : [ ], "data" : { "id" : "8a808085698f12b501698fdbf0db0703", "createdBy" : "8a8080ce6708016501670804cd590000", "createdDate" : "2019-03-18T08:12:29.787+0000", "modifiedBy" : "8a8080ce6708016501670804cd590000", "modifiedDate" : "2019-03-18T08:12:29.787+0000", "version" : null, "inactive" : false, "name" : "GivBnyjK", "description" : "GivBnyjK", "orgType" : "ENTERPRISE", "billingEmail" : "dagmar.weber@yahoo.com", "company" : "Farrell, Farrell and Farrell", "location" : "GivBnyjK", "orgPlan" : "ENTERPRISE" }, "totalPages" : 0, "totalElements" : 0 }] 2019-03-18 08:12:29 DEBUG [ OrgCreateUserAInitAbac] : 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=MWFlMmFhMDMtNmI4Zi00NTc3LWE0M2UtYTNmMmZhMmM4NGU5; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:12:29 GMT]}] 2019-03-18 08:12:29 DEBUG [ OrgCreateUserAInitAbac] : StatusCode [200] 2019-03-18 08:12:29 DEBUG [ OrgCreateUserAInitAbac] : Time [1322] 2019-03-18 08:12:29 DEBUG [ OrgCreateUserAInitAbac] : Size [586] 2019-03-18 08:12:29 INFO [null] : Assertion [@StatusCode == 200 AND @Response.errors == false] resolved-to [200 == 200 AND false == false] result [Passed] 2019-03-18 08:12:29 DEBUG [OrgCreateUserAInitAbac_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=MWFlMmFhMDMtNmI4Zi00NTc3LWE0M2UtYTNmMmZhMmM4NGU5; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:12:29 GMT]}] 2019-03-18 08:12:29 DEBUG [OrgCreateUserAInitAbac_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=MWFlMmFhMDMtNmI4Zi00NTc3LWE0M2UtYTNmMmZhMmM4NGU5; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:12:29 GMT]}] 2019-03-18 08:12:29 DEBUG [OrgCreateUserAInitAbac_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=MWFlMmFhMDMtNmI4Zi00NTc3LWE0M2UtYTNmMmZhMmM4NGU5; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:12:29 GMT]}] 2019-03-18 08:12:29 DEBUG [OrgCreateUserAInitAbac_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=MWFlMmFhMDMtNmI4Zi00NTc3LWE0M2UtYTNmMmZhMmM4NGU5; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:12:29 GMT]}] 2019-03-18 08:12:31 DEBUG [ApiV1OrgsIdPutUseraCreateOrgUserbDisallowAbac] : URL [http://13.56.210.25/api/v1/orgs/8a808085698f12b501698fdbf0db0703] 2019-03-18 08:12:31 DEBUG [ApiV1OrgsIdPutUseraCreateOrgUserbDisallowAbac] : Method [PUT] 2019-03-18 08:12:31 DEBUG [ApiV1OrgsIdPutUseraCreateOrgUserbDisallowAbac] : Request [{ "billingEmail" : "juana.parisian@yahoo.com", "company" : "Schumm, Schumm and Schumm", "createdBy" : "", "createdDate" : "", "description" : "NFXccszO", "id" : "8a808085698f12b501698fdbf0db0703", "inactive" : false, "location" : "NFXccszO", "modifiedBy" : "", "modifiedDate" : "", "name" : "NFXccszO", "orgPlan" : "FREE", "orgType" : "ENTERPRISE", "version" : "" }] 2019-03-18 08:12:31 DEBUG [ApiV1OrgsIdPutUseraCreateOrgUserbDisallowAbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic T1JHQi8vdXNlckJAdGVzdGxhYnMuaW86b3JnMTIzNCQ=]}] 2019-03-18 08:12:31 DEBUG [ApiV1OrgsIdPutUseraCreateOrgUserbDisallowAbac] : Response [{ "requestId" : "None", "requestTime" : "2019-03-18T08:12:31.041+0000", "errors" : false, "messages" : [ ], "data" : { "id" : "8a808085698f12b501698fdbf0db0703", "createdBy" : "", "createdDate" : null, "modifiedBy" : "8a80802c685a79e701685a92e68a0342", "modifiedDate" : "2019-03-18T08:12:31.037+0000", "version" : null, "inactive" : false, "name" : "NFXccszO", "description" : "NFXccszO", "orgType" : "ENTERPRISE", "billingEmail" : "juana.parisian@yahoo.com", "company" : "Schumm, Schumm and Schumm", "location" : "NFXccszO", "orgPlan" : "FREE" }, "totalPages" : 0, "totalElements" : 0 }] 2019-03-18 08:12:31 DEBUG [ApiV1OrgsIdPutUseraCreateOrgUserbDisallowAbac] : 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=NDc4NDQ3N2UtOGZlYy00MGE5LThhOGEtNTIwZTRlMmJiYTk3; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:12:30 GMT]}] 2019-03-18 08:12:31 DEBUG [ApiV1OrgsIdPutUseraCreateOrgUserbDisallowAbac] : StatusCode [200] 2019-03-18 08:12:31 DEBUG [ApiV1OrgsIdPutUseraCreateOrgUserbDisallowAbac] : Time [1055] 2019-03-18 08:12:31 DEBUG [ApiV1OrgsIdPutUseraCreateOrgUserbDisallowAbac] : Size [521] 2019-03-18 08:12:31 ERROR [ApiV1OrgsIdPutUseraCreateOrgUserbDisallowAbac] : Assertion [@StatusCode == 401 OR @StatusCode == 403 OR @Response.errors == true] resolved-to [200 == 401 OR 200 == 403 OR false == true] result [Failed] 2019-03-18 08:12:32 DEBUG [ApiV1OrgsIdDeleteOrgAbstractAbac] : URL [http://13.56.210.25/api/v1/orgs/8a808085698f12b501698fdbf0db0703] 2019-03-18 08:12:32 DEBUG [ApiV1OrgsIdDeleteOrgAbstractAbac] : Method [DELETE] 2019-03-18 08:12:32 DEBUG [ApiV1OrgsIdDeleteOrgAbstractAbac] : Request [null] 2019-03-18 08:12:32 DEBUG [ApiV1OrgsIdDeleteOrgAbstractAbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic RlhMYWJzLy9hZG1pbkBmeGxhYnMuaW86YWRtaW4xMjMk]}] 2019-03-18 08:12:32 DEBUG [ApiV1OrgsIdDeleteOrgAbstractAbac] : Response [{ "requestId" : "None", "requestTime" : "2019-03-18T08:12:32.449+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Resource name or key already exists." } ], "data" : null, "totalPages" : 0, "totalElements" : 0 }] 2019-03-18 08:12:32 DEBUG [ApiV1OrgsIdDeleteOrgAbstractAbac] : 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=MWZlNDc4ZWQtMzk1ZS00N2ZjLTk4MTEtMjQwMGQ2ZmM4NmE2; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:12:32 GMT]}] 2019-03-18 08:12:32 DEBUG [ApiV1OrgsIdDeleteOrgAbstractAbac] : StatusCode [200] 2019-03-18 08:12:32 DEBUG [ApiV1OrgsIdDeleteOrgAbstractAbac] : Time [1442] 2019-03-18 08:12:32 DEBUG [ApiV1OrgsIdDeleteOrgAbstractAbac] : Size [210] 2019-03-18 08:12:32 INFO [null] : Assertion [@StatusCode == 200] resolved-to [200 == 200] result [Passed]

--- FX Bot ---