asriz7777 / FXSCRIPTS-TEST-AUTOMATION

0 stars 1 forks source link

Vulnerability [null] : GET:/api/v1/abac/project/{projectId}/add-abacpositive-rules #93

Open asriz7777 opened 5 years ago

asriz7777 commented 5 years ago

Project : FXABAC TEST

Template : ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateArrayabacresourceUserbDisallowAbac

Run Id : 8a8080f6695ba6ee01695c1932e37290

Job : Default

Env : Default

Category : null

Tags : null

Severity : null

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

Endpoint : http://13.56.210.25/api/v1/abac/project/None/add-abacpositive-rules

Request :

Response :
{ "requestId" : "None", "requestTime" : "2019-03-08T06:59:19.610+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : null, "value" : "No Resources found." } ], "data" : null, "totalPages" : 0, "totalElements" : 0 }

Logs :
Assertion [@StatusCode == 401 OR @StatusCode == 403 OR @Response.errors == true] resolved-to [200 == 401 OR 200 == 403 OR true == true] result [Passed] --- FX Bot ---

asriz7777 commented 5 years ago

Project : FXABAC TEST

Template : ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateArrayabacresourceUserbDisallowAbac

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

Endpoint : http://13.56.210.25/api/v1/abac/project/None/add-abacpositive-rules

Request :

Response :
{ "requestId" : "None", "requestTime" : "2019-03-18T08:12:23.021+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : null, "value" : "No Resources found." } ], "data" : null, "totalPages" : 0, "totalElements" : 0 }

Logs :
2019-03-18 08:12:21 DEBUG [ArrayAbacResourceCreateUserAInitAbac] : URL [http://13.56.210.25/api/v1/abac/batch] 2019-03-18 08:12:21 DEBUG [ArrayAbacResourceCreateUserAInitAbac] : Method [POST] 2019-03-18 08:12:21 DEBUG [ArrayAbacResourceCreateUserAInitAbac] : Request [[ { "createBody" : "rBg53r6l", "createEndpoint" : "rBg53r6l", "createUserAuth" : "rBg53r6l", "createdBy" : "", "createdDate" : "", "deleteEndpoint" : "rBg53r6l", "enumValues" : "rBg53r6l", "generatorId" : "rBg53r6l", "id" : "", "inactive" : false, "initScriptName" : "rBg53r6l", "lock" : false, "modifiedBy" : "", "modifiedDate" : "", "resourceName" : "rBg53r6l", "scripts" : [ { "body" : "rBg53r6l", "deleteEndPoint" : "rBg53r6l", "endpoint" : "rBg53r6l", "resourceName" : "rBg53r6l", "scriptName" : "rBg53r6l", "scriptType" : "rBg53r6l", "sequence" : "1100950941", "userAuth" : "rBg53r6l", "validationScript" : false } ], "typeThreeCreateEndpoint" : "rBg53r6l", "validations" : [ { "body" : "rBg53r6l", "endpoint" : "rBg53r6l", "inactive" : false, "lock" : false, "path" : "rBg53r6l", "userAuth" : "rBg53r6l", "validationType" : "rBg53r6l" } ], "version" : "" } ]] 2019-03-18 08:12:21 DEBUG [ArrayAbacResourceCreateUserAInitAbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic RlhMYWJzLy9hZG1pbkBmeGxhYnMuaW86YWRtaW4xMjMk]}] 2019-03-18 08:12:21 DEBUG [ArrayAbacResourceCreateUserAInitAbac] : Response [{ "requestId" : "None", "requestTime" : "2019-03-18T08:12:21.889+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:21 DEBUG [ArrayAbacResourceCreateUserAInitAbac] : 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=MzIyYzdkZDYtM2UzNS00N2E2LWJjZmItNTQ1YmNlMWU0Yjkx; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:12:21 GMT]}] 2019-03-18 08:12:21 DEBUG [ArrayAbacResourceCreateUserAInitAbac] : StatusCode [200] 2019-03-18 08:12:21 DEBUG [ArrayAbacResourceCreateUserAInitAbac] : Time [1267] 2019-03-18 08:12:21 DEBUG [ArrayAbacResourceCreateUserAInitAbac] : Size [210] 2019-03-18 08:12:21 ERROR [null] : Assertion [@StatusCode == 200 AND @Response.errors == false] resolved-to [200 == 200 AND true == false] result [Failed] 2019-03-18 08:12:21 DEBUG [ArrayAbacResourceCreateUserAInitAbac_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=MzIyYzdkZDYtM2UzNS00N2E2LWJjZmItNTQ1YmNlMWU0Yjkx; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:12:21 GMT]}] 2019-03-18 08:12:21 DEBUG [ArrayAbacResourceCreateUserAInitAbac_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=MzIyYzdkZDYtM2UzNS00N2E2LWJjZmItNTQ1YmNlMWU0Yjkx; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:12:21 GMT]}] 2019-03-18 08:12:21 DEBUG [ArrayAbacResourceCreateUserAInitAbac_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=MzIyYzdkZDYtM2UzNS00N2E2LWJjZmItNTQ1YmNlMWU0Yjkx; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:12:21 GMT]}] 2019-03-18 08:12:21 DEBUG [ArrayAbacResourceCreateUserAInitAbac_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=MzIyYzdkZDYtM2UzNS00N2E2LWJjZmItNTQ1YmNlMWU0Yjkx; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:12:21 GMT]}] 2019-03-18 08:12:23 DEBUG [ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateArrayabacresourceUserbDisallowAbac] : URL [http://13.56.210.25/api/v1/abac/project/None/add-abacpositive-rules] 2019-03-18 08:12:23 DEBUG [ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateArrayabacresourceUserbDisallowAbac] : Method [GET] 2019-03-18 08:12:23 DEBUG [ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateArrayabacresourceUserbDisallowAbac] : Request [] 2019-03-18 08:12:23 DEBUG [ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateArrayabacresourceUserbDisallowAbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic T1JHQi8vdXNlckJAdGVzdGxhYnMuaW86b3JnMTIzNCQ=]}] 2019-03-18 08:12:23 DEBUG [ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateArrayabacresourceUserbDisallowAbac] : Response [{ "requestId" : "None", "requestTime" : "2019-03-18T08:12:23.021+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : null, "value" : "No Resources found." } ], "data" : null, "totalPages" : 0, "totalElements" : 0 }] 2019-03-18 08:12:23 DEBUG [ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateArrayabacresourceUserbDisallowAbac] : 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=ZjEzNmIxMDgtOGZhYi00YWJmLTkwZDItNTkyZWY5MjM4ZjU1; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:12:22 GMT]}] 2019-03-18 08:12:23 DEBUG [ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateArrayabacresourceUserbDisallowAbac] : StatusCode [200] 2019-03-18 08:12:23 DEBUG [ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateArrayabacresourceUserbDisallowAbac] : Time [1128] 2019-03-18 08:12:23 DEBUG [ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateArrayabacresourceUserbDisallowAbac] : Size [195] 2019-03-18 08:12:23 INFO [ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateArrayabacresourceUserbDisallowAbac] : Assertion [@StatusCode == 401 OR @StatusCode == 403 OR @Response.errors == true] resolved-to [200 == 401 OR 200 == 403 OR true == true] result [Passed] 2019-03-18 08:12:24 DEBUG [ApiV1AbacIdDeleteArrayabacresourceAbstractAbac] : URL [http://13.56.210.25/api/v1/abac/] 2019-03-18 08:12:24 DEBUG [ApiV1AbacIdDeleteArrayabacresourceAbstractAbac] : Method [DELETE] 2019-03-18 08:12:24 DEBUG [ApiV1AbacIdDeleteArrayabacresourceAbstractAbac] : Request [null] 2019-03-18 08:12:24 DEBUG [ApiV1AbacIdDeleteArrayabacresourceAbstractAbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic RlhMYWJzLy9hZG1pbkBmeGxhYnMuaW86YWRtaW4xMjMk]}] 2019-03-18 08:12:24 DEBUG [ApiV1AbacIdDeleteArrayabacresourceAbstractAbac] : Response [{ "timestamp" : "2019-03-18T08:12:24.437+0000", "status" : 405, "error" : "Method Not Allowed", "message" : "Request method 'DELETE' not supported", "path" : "/api/v1/abac/" }] 2019-03-18 08:12:24 DEBUG [ApiV1AbacIdDeleteArrayabacresourceAbstractAbac] : Response-Headers [{Allow=[GET, PUT, 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=YzBjYmYyM2ItMmQ5Yi00NDNlLThmZmYtOGZkMzNlZTJhZmU0; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:12:24 GMT]}] 2019-03-18 08:12:24 DEBUG [ApiV1AbacIdDeleteArrayabacresourceAbstractAbac] : StatusCode [405] 2019-03-18 08:12:24 DEBUG [ApiV1AbacIdDeleteArrayabacresourceAbstractAbac] : Time [1366] 2019-03-18 08:12:24 DEBUG [ApiV1AbacIdDeleteArrayabacresourceAbstractAbac] : Size [159] 2019-03-18 08:12:24 ERROR [null] : Assertion [@StatusCode == 200] resolved-to [405 == 200] result [Failed]

--- FX Bot ---