asriz7777 / FXSCRIPTS-TEST-AUTOMATION

0 stars 1 forks source link

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

Open asriz7777 opened 5 years ago

asriz7777 commented 5 years ago

Project : FXABAC TEST

Template : ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateAbacresourceUsercDisallowAbac

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

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

Request :

Response :
{ "requestId" : "None", "requestTime" : "2019-03-08T06:59:20.392+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 : ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateAbacresourceUsercDisallowAbac

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

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

Request :

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

Logs :
2019-03-18 08:11:04 DEBUG [AbacResourceCreateUserAInitAbac] : URL [http://13.56.210.25/api/v1/abac] 2019-03-18 08:11:04 DEBUG [AbacResourceCreateUserAInitAbac] : Method [POST] 2019-03-18 08:11:04 DEBUG [AbacResourceCreateUserAInitAbac] : Request [{ "createBody" : "0k7hcmTs", "createEndpoint" : "0k7hcmTs", "createUserAuth" : "0k7hcmTs", "createdBy" : "", "createdDate" : "", "deleteEndpoint" : "0k7hcmTs", "enumValues" : "0k7hcmTs", "generatorId" : "0k7hcmTs", "id" : "", "inactive" : false, "initScriptName" : "0k7hcmTs", "lock" : false, "modifiedBy" : "", "modifiedDate" : "", "resourceName" : "0k7hcmTs", "scripts" : [ { "body" : "0k7hcmTs", "deleteEndPoint" : "0k7hcmTs", "endpoint" : "0k7hcmTs", "resourceName" : "0k7hcmTs", "scriptName" : "0k7hcmTs", "scriptType" : "0k7hcmTs", "sequence" : "1475504448", "userAuth" : "0k7hcmTs", "validationScript" : false } ], "typeThreeCreateEndpoint" : "0k7hcmTs", "validations" : [ { "body" : "0k7hcmTs", "endpoint" : "0k7hcmTs", "inactive" : false, "lock" : false, "path" : "0k7hcmTs", "userAuth" : "0k7hcmTs", "validationType" : "0k7hcmTs" } ], "version" : "" }] 2019-03-18 08:11:04 DEBUG [AbacResourceCreateUserAInitAbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic RlhMYWJzLy9hZG1pbkBmeGxhYnMuaW86YWRtaW4xMjMk]}] 2019-03-18 08:11:04 DEBUG [AbacResourceCreateUserAInitAbac] : Response [{ "requestId" : "None", "requestTime" : "2019-03-18T08:11:04.312+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : "", "value" : "Resource name or key already exists." } ], "data" : null, "totalPages" : 0, "totalElements" : 0 }] 2019-03-18 08:11:04 DEBUG [AbacResourceCreateUserAInitAbac] : 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=YzFiMTRiMjYtZDg3Yy00NjFkLTljNTctMWUyNGM3YjA2Yzdl; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:11:03 GMT]}] 2019-03-18 08:11:04 DEBUG [AbacResourceCreateUserAInitAbac] : StatusCode [200] 2019-03-18 08:11:04 DEBUG [AbacResourceCreateUserAInitAbac] : Time [857] 2019-03-18 08:11:04 DEBUG [AbacResourceCreateUserAInitAbac] : Size [210] 2019-03-18 08:11:04 ERROR [null] : Assertion [@StatusCode == 200 AND @Response.errors == false] resolved-to [200 == 200 AND true == false] result [Failed] 2019-03-18 08:11:04 DEBUG [AbacResourceCreateUserAInitAbac_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=YzFiMTRiMjYtZDg3Yy00NjFkLTljNTctMWUyNGM3YjA2Yzdl; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:11:03 GMT]}] 2019-03-18 08:11:04 DEBUG [AbacResourceCreateUserAInitAbac_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=YzFiMTRiMjYtZDg3Yy00NjFkLTljNTctMWUyNGM3YjA2Yzdl; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:11:03 GMT]}] 2019-03-18 08:11:04 DEBUG [AbacResourceCreateUserAInitAbac_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=YzFiMTRiMjYtZDg3Yy00NjFkLTljNTctMWUyNGM3YjA2Yzdl; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:11:03 GMT]}] 2019-03-18 08:11:04 DEBUG [AbacResourceCreateUserAInitAbac_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=YzFiMTRiMjYtZDg3Yy00NjFkLTljNTctMWUyNGM3YjA2Yzdl; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:11:03 GMT]}] 2019-03-18 08:11:05 DEBUG [ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateAbacresourceUsercDisallowAbac] : URL [http://13.56.210.25/api/v1/abac/project/None/add-abacpositive-rules] 2019-03-18 08:11:05 DEBUG [ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateAbacresourceUsercDisallowAbac] : Method [GET] 2019-03-18 08:11:05 DEBUG [ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateAbacresourceUsercDisallowAbac] : Request [] 2019-03-18 08:11:05 DEBUG [ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateAbacresourceUsercDisallowAbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic T1JHQy8vdXNlckNAbWV0bGFicy5pbzpvcmcxMjM0JA==]}] 2019-03-18 08:11:05 DEBUG [ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateAbacresourceUsercDisallowAbac] : Response [{ "requestId" : "None", "requestTime" : "2019-03-18T08:11:05.514+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : null, "value" : "No Resources found." } ], "data" : null, "totalPages" : 0, "totalElements" : 0 }] 2019-03-18 08:11:05 DEBUG [ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateAbacresourceUsercDisallowAbac] : 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=NmM2MzVmZDQtZDM4NC00YzY2LTg0YTMtYzMzNmUyYzFlYjE0; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:11:05 GMT]}] 2019-03-18 08:11:05 DEBUG [ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateAbacresourceUsercDisallowAbac] : StatusCode [200] 2019-03-18 08:11:05 DEBUG [ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateAbacresourceUsercDisallowAbac] : Time [1222] 2019-03-18 08:11:05 DEBUG [ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateAbacresourceUsercDisallowAbac] : Size [195] 2019-03-18 08:11:05 INFO [ApiV1AbacProjectProjectidAddAbacpositiveRulesGetUseraCreateAbacresourceUsercDisallowAbac] : 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:11:06 DEBUG [ApiV1AbacIdDeleteAbacresourceAbstractAbac] : URL [http://13.56.210.25/api/v1/abac/] 2019-03-18 08:11:06 DEBUG [ApiV1AbacIdDeleteAbacresourceAbstractAbac] : Method [DELETE] 2019-03-18 08:11:06 DEBUG [ApiV1AbacIdDeleteAbacresourceAbstractAbac] : Request [null] 2019-03-18 08:11:06 DEBUG [ApiV1AbacIdDeleteAbacresourceAbstractAbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic RlhMYWJzLy9hZG1pbkBmeGxhYnMuaW86YWRtaW4xMjMk]}] 2019-03-18 08:11:06 DEBUG [ApiV1AbacIdDeleteAbacresourceAbstractAbac] : Response [{ "timestamp" : "2019-03-18T08:11:06.545+0000", "status" : 405, "error" : "Method Not Allowed", "message" : "Request method 'DELETE' not supported", "path" : "/api/v1/abac/" }] 2019-03-18 08:11:06 DEBUG [ApiV1AbacIdDeleteAbacresourceAbstractAbac] : 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=ZmRjNzg0MWMtMzcwMy00M2UwLWEwMDAtYmI3NmVhY2I0OGI4; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:11:06 GMT]}] 2019-03-18 08:11:06 DEBUG [ApiV1AbacIdDeleteAbacresourceAbstractAbac] : StatusCode [405] 2019-03-18 08:11:06 DEBUG [ApiV1AbacIdDeleteAbacresourceAbstractAbac] : Time [998] 2019-03-18 08:11:06 DEBUG [ApiV1AbacIdDeleteAbacresourceAbstractAbac] : Size [159] 2019-03-18 08:11:06 ERROR [null] : Assertion [@StatusCode == 200] resolved-to [405 == 200] result [Failed]

--- FX Bot ---