asriz7777 / FXSCRIPTS-TEST-AUTOMATION

0 stars 1 forks source link

Vulnerability [null] : GET:/api/v1/abac/generator/{generatorid} #77

Open asriz7777 opened 5 years ago

asriz7777 commented 5 years ago

Project : FXABAC TEST

Template : ApiV1AbacGeneratorGeneratoridGetUseraCreateAbacresourceUsercDisallowAbac

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

Endpoint : http://13.56.210.25/api/v1/abac/generator/

Request :

Response :
{ "requestId" : "None", "requestTime" : "2019-03-08T06:59:13.921+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : null, "value" : "Abac Resource doesnt exist" } ], "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 : ApiV1AbacGeneratorGeneratoridGetUseraCreateAbacresourceUsercDisallowAbac

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

Endpoint : http://13.56.210.25/api/v1/abac/generator/

Request :

Response :
{ "requestId" : "None", "requestTime" : "2019-03-18T08:12:35.231+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : null, "value" : "Abac Resource doesnt exist" } ], "data" : null, "totalPages" : 0, "totalElements" : 0 }

Logs :
2019-03-18 08:12:34 DEBUG [AbacResourceCreateUserAInitAbac] : URL [http://13.56.210.25/api/v1/abac] 2019-03-18 08:12:34 DEBUG [AbacResourceCreateUserAInitAbac] : Method [POST] 2019-03-18 08:12:34 DEBUG [AbacResourceCreateUserAInitAbac] : Request [{ "createBody" : "tQ9ug5Xd", "createEndpoint" : "tQ9ug5Xd", "createUserAuth" : "tQ9ug5Xd", "createdBy" : "", "createdDate" : "", "deleteEndpoint" : "tQ9ug5Xd", "enumValues" : "tQ9ug5Xd", "generatorId" : "tQ9ug5Xd", "id" : "", "inactive" : false, "initScriptName" : "tQ9ug5Xd", "lock" : false, "modifiedBy" : "", "modifiedDate" : "", "resourceName" : "tQ9ug5Xd", "scripts" : [ { "body" : "tQ9ug5Xd", "deleteEndPoint" : "tQ9ug5Xd", "endpoint" : "tQ9ug5Xd", "resourceName" : "tQ9ug5Xd", "scriptName" : "tQ9ug5Xd", "scriptType" : "tQ9ug5Xd", "sequence" : "1428413154", "userAuth" : "tQ9ug5Xd", "validationScript" : false } ], "typeThreeCreateEndpoint" : "tQ9ug5Xd", "validations" : [ { "body" : "tQ9ug5Xd", "endpoint" : "tQ9ug5Xd", "inactive" : false, "lock" : false, "path" : "tQ9ug5Xd", "userAuth" : "tQ9ug5Xd", "validationType" : "tQ9ug5Xd" } ], "version" : "" }] 2019-03-18 08:12:34 DEBUG [AbacResourceCreateUserAInitAbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic RlhMYWJzLy9hZG1pbkBmeGxhYnMuaW86YWRtaW4xMjMk]}] 2019-03-18 08:12:34 DEBUG [AbacResourceCreateUserAInitAbac] : Response [{ "requestId" : "None", "requestTime" : "2019-03-18T08:12:34.041+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:34 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=YjM3ZmM4ZTUtNmEyNy00MjBkLWE2NDMtN2U5N2EzYjgyNmJm; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:12:33 GMT]}] 2019-03-18 08:12:34 DEBUG [AbacResourceCreateUserAInitAbac] : StatusCode [200] 2019-03-18 08:12:34 DEBUG [AbacResourceCreateUserAInitAbac] : Time [1270] 2019-03-18 08:12:34 DEBUG [AbacResourceCreateUserAInitAbac] : Size [210] 2019-03-18 08:12:34 ERROR [null] : Assertion [@StatusCode == 200 AND @Response.errors == false] resolved-to [200 == 200 AND true == false] result [Failed] 2019-03-18 08:12:34 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=YjM3ZmM4ZTUtNmEyNy00MjBkLWE2NDMtN2U5N2EzYjgyNmJm; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:12:33 GMT]}] 2019-03-18 08:12:34 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=YjM3ZmM4ZTUtNmEyNy00MjBkLWE2NDMtN2U5N2EzYjgyNmJm; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:12:33 GMT]}] 2019-03-18 08:12:34 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=YjM3ZmM4ZTUtNmEyNy00MjBkLWE2NDMtN2U5N2EzYjgyNmJm; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:12:33 GMT]}] 2019-03-18 08:12:34 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=YjM3ZmM4ZTUtNmEyNy00MjBkLWE2NDMtN2U5N2EzYjgyNmJm; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:12:33 GMT]}] 2019-03-18 08:12:35 DEBUG [ApiV1AbacGeneratorGeneratoridGetUseraCreateAbacresourceUsercDisallowAbac] : URL [http://13.56.210.25/api/v1/abac/generator/] 2019-03-18 08:12:35 DEBUG [ApiV1AbacGeneratorGeneratoridGetUseraCreateAbacresourceUsercDisallowAbac] : Method [GET] 2019-03-18 08:12:35 DEBUG [ApiV1AbacGeneratorGeneratoridGetUseraCreateAbacresourceUsercDisallowAbac] : Request [] 2019-03-18 08:12:35 DEBUG [ApiV1AbacGeneratorGeneratoridGetUseraCreateAbacresourceUsercDisallowAbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic T1JHQy8vdXNlckNAbWV0bGFicy5pbzpvcmcxMjM0JA==]}] 2019-03-18 08:12:35 DEBUG [ApiV1AbacGeneratorGeneratoridGetUseraCreateAbacresourceUsercDisallowAbac] : Response [{ "requestId" : "None", "requestTime" : "2019-03-18T08:12:35.231+0000", "errors" : true, "messages" : [ { "type" : "ERROR", "key" : null, "value" : "Abac Resource doesnt exist" } ], "data" : null, "totalPages" : 0, "totalElements" : 0 }] 2019-03-18 08:12:35 DEBUG [ApiV1AbacGeneratorGeneratoridGetUseraCreateAbacresourceUsercDisallowAbac] : 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=ZmU5YTJmMjgtNWFlYi00NzhlLWJmNjYtYjUxMDhjYmY4Y2Iw; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:12:34 GMT]}] 2019-03-18 08:12:35 DEBUG [ApiV1AbacGeneratorGeneratoridGetUseraCreateAbacresourceUsercDisallowAbac] : StatusCode [200] 2019-03-18 08:12:35 DEBUG [ApiV1AbacGeneratorGeneratoridGetUseraCreateAbacresourceUsercDisallowAbac] : Time [1242] 2019-03-18 08:12:35 DEBUG [ApiV1AbacGeneratorGeneratoridGetUseraCreateAbacresourceUsercDisallowAbac] : Size [202] 2019-03-18 08:12:35 INFO [ApiV1AbacGeneratorGeneratoridGetUseraCreateAbacresourceUsercDisallowAbac] : 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:36 DEBUG [ApiV1AbacIdDeleteAbacresourceAbstractAbac] : URL [http://13.56.210.25/api/v1/abac/] 2019-03-18 08:12:36 DEBUG [ApiV1AbacIdDeleteAbacresourceAbstractAbac] : Method [DELETE] 2019-03-18 08:12:36 DEBUG [ApiV1AbacIdDeleteAbacresourceAbstractAbac] : Request [null] 2019-03-18 08:12:36 DEBUG [ApiV1AbacIdDeleteAbacresourceAbstractAbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic RlhMYWJzLy9hZG1pbkBmeGxhYnMuaW86YWRtaW4xMjMk]}] 2019-03-18 08:12:36 DEBUG [ApiV1AbacIdDeleteAbacresourceAbstractAbac] : Response [{ "timestamp" : "2019-03-18T08:12:36.205+0000", "status" : 405, "error" : "Method Not Allowed", "message" : "Request method 'DELETE' not supported", "path" : "/api/v1/abac/" }] 2019-03-18 08:12:36 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=NWI1YjY3ZTctOWUxMy00OTAwLWFhYTMtNmFjMjI0ZThhNTM5; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Mon, 18 Mar 2019 08:12:35 GMT]}] 2019-03-18 08:12:36 DEBUG [ApiV1AbacIdDeleteAbacresourceAbstractAbac] : StatusCode [405] 2019-03-18 08:12:36 DEBUG [ApiV1AbacIdDeleteAbacresourceAbstractAbac] : Time [900] 2019-03-18 08:12:36 DEBUG [ApiV1AbacIdDeleteAbacresourceAbstractAbac] : Size [159] 2019-03-18 08:12:36 ERROR [null] : Assertion [@StatusCode == 200] resolved-to [405 == 200] result [Failed]

--- FX Bot ---