asriz7777 / FXSCRIPTS-TEST-AUTOMATION

0 stars 1 forks source link

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

Open asriz7777 opened 5 years ago

asriz7777 commented 5 years ago

Project : FXABAC TEST

Template : ApiV1AbacProjectProjectidAddAbact7RulesGetUseraCreateAbacresourceUsercDisallowAbac

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=NjExZWFjMGMtZTU3ZC00YjQxLWIyYjEtZTA2OWJmYTc0ZGYz; 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-abact7-rules

Request :

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

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

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

Request :

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

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

--- FX Bot ---