zahedmohammed / testingApi

0 stars 0 forks source link

ticketlake : StoreOrderOrderidGetRoleAdminDisallowedRbac #48

Open zahedmohammed opened 5 years ago

zahedmohammed commented 5 years ago

Project : ticketlake

Job : Default

Env : Default

Category : RBAC

Tags : [OWASP - OTG-IDENT-001 , FX Top 10 - API Vulnerability]

Severity : Major

Region : FXLabs/US_WEST_1

Result : fail

Status Code : 200

Headers : {Date=[Mon, 21 Jan 2019 06:07:02 GMT], Content-Type=[application/json], Connection=[keep-alive], Access-Control-Allow-Headers=[X-Requested-With,Content-Type,Accept,Origin], Access-Control-Allow-Origin=[], Access-Control-Allow-Methods=[], Access-Control-Allow-Credentials=[true]}

Endpoint : http://virtserver.swaggerhub.com/T6352/Ticket-Lake/1.0.0/store/order/Sz9cyshL

Request :

Response :
{ "id" : 0, "petId" : 0, "quantity" : 0, "shipDate" : "2015-07-20T15:49:04-07:00", "status" : "placed", "complete" : false }

Logs :
2019-01-21 06:07:00 DEBUG [StoreOrderOrderidGetRoleAdminDisallowedRbac] : URL [http://virtserver.swaggerhub.com/T6352/Ticket-Lake/1.0.0/store/order/Sz9cyshL] 2019-01-21 06:07:00 DEBUG [StoreOrderOrderidGetRoleAdminDisallowedRbac] : Method [GET] 2019-01-21 06:07:00 DEBUG [StoreOrderOrderidGetRoleAdminDisallowedRbac] : Request [] 2019-01-21 06:07:00 DEBUG [StoreOrderOrderidGetRoleAdminDisallowedRbac] : Request-Headers [{Content-Type=[application/json], Accept=[application/json]}] 2019-01-21 06:07:00 DEBUG [StoreOrderOrderidGetRoleAdminDisallowedRbac] : Response [{ "id" : 0, "petId" : 0, "quantity" : 0, "shipDate" : "2015-07-20T15:49:04-07:00", "status" : "placed", "complete" : false }] 2019-01-21 06:07:00 DEBUG [StoreOrderOrderidGetRoleAdminDisallowedRbac] : Response-Headers [{Date=[Mon, 21 Jan 2019 06:07:02 GMT], Content-Type=[application/json], Connection=[keep-alive], Access-Control-Allow-Headers=[X-Requested-With,Content-Type,Accept,Origin], Access-Control-Allow-Origin=[], Access-Control-Allow-Methods=[], Access-Control-Allow-Credentials=[true]}] 2019-01-21 06:07:00 DEBUG [StoreOrderOrderidGetRoleAdminDisallowedRbac] : StatusCode [200] 2019-01-21 06:07:00 DEBUG [StoreOrderOrderidGetRoleAdminDisallowedRbac] : Time [529] 2019-01-21 06:07:00 DEBUG [StoreOrderOrderidGetRoleAdminDisallowedRbac] : Size [136] 2019-01-21 06:07:00 ERROR [StoreOrderOrderidGetRoleAdminDisallowedRbac] : Assertion [@StatusCode == 401 OR @StatusCode == 403] resolved-to [200 == 401 OR 200 == 403] result [Failed]

--- FX Bot ---