AtifaFahmeen / FXT-Testing

0 stars 0 forks source link

FX SQL Test : ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound #139

Open AtifaFahmeen opened 5 years ago

AtifaFahmeen commented 5 years ago

Project : FX SQL Test

Job : Default

Env : Default

Category : SQL_Injection

Tags : [OWASP A1, [PCI DSS 3.0] 6.5.1, OWASP - OTG-INPVAL-005, FX Top 10 - API Vulnerability, Intrusive]

Severity : Major

Region : US_WEST_2

Result : fail

Status Code : 404

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=MzA3ODE2YzEtZmQxMy00OTYzLWJkNDUtZjRjYzFhMDYyYjQ3; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 23 Jan 2019 05:47:25 GMT]}

Endpoint : http://localhost:8080/api/v1/api/v1/abac?page=

Request :

Response :
{ "timestamp" : "2019-01-23T05:47:25.753+0000", "status" : 404, "error" : "Not Found", "message" : "No message available", "path" : "/api/v1/api/v1/abac" }

Logs :
2019-01-23 05:47:25 ERROR [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : No module found with the name [FXLabs/Common/MySQL-TimeBound-SQL_Injection_Strings] defined in Fxfile.yaml 2019-01-23 05:47:25 DEBUG [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : URL [http://localhost:8080/api/v1/api/v1/abac?page=] 2019-01-23 05:47:25 DEBUG [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : Method [GET] 2019-01-23 05:47:25 DEBUG [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : Request [] 2019-01-23 05:47:25 DEBUG [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic RlhMYWJzLy9hZG1pbkBmeGxhYnMuaW86YWRtaW4xMjMk]}] 2019-01-23 05:47:25 DEBUG [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : Response [{ "timestamp" : "2019-01-23T05:47:25.753+0000", "status" : 404, "error" : "Not Found", "message" : "No message available", "path" : "/api/v1/api/v1/abac" }] 2019-01-23 05:47:25 DEBUG [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : 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=MzA3ODE2YzEtZmQxMy00OTYzLWJkNDUtZjRjYzFhMDYyYjQ3; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 23 Jan 2019 05:47:25 GMT]}] 2019-01-23 05:47:25 DEBUG [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : StatusCode [404] 2019-01-23 05:47:25 DEBUG [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : Time [402] 2019-01-23 05:47:25 DEBUG [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : Size [139] 2019-01-23 05:47:25 INFO [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : Assertion [@ResponseTime < 7000 OR @ResponseTime > 10000] resolved-to [402 < 7000 OR 402 > 10000] result [Passed] 2019-01-23 05:47:25 ERROR [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : Assertion [@StatusCode != 404] resolved-to [404 != 404] result [Failed]

--- FX Bot ---

AtifaFahmeen commented 5 years ago

Project : FX SQL Test

Job : Default

Env : Default

Region : US_WEST_2

Result : pass

Status Code : 404

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=NTM3YTQwYjItNjAzZi00OWZlLWFkNmQtMWFhOTFlMGUwOWUx; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 23 Jan 2019 05:54:53 GMT]}

Endpoint : http://localhost:8080/api/v1/api/v1/abac?page=

Request :

Response :
{ "timestamp" : "2019-01-23T05:54:53.475+0000", "status" : 404, "error" : "Not Found", "message" : "No message available", "path" : "/api/v1/api/v1/abac" }

Logs :
Assertion [@StatusCode != 404] resolved-to [404 != 404] result [Failed]Assertion [@ResponseTime < 7000 OR @ResponseTime > 10000] resolved-to [375 < 7000 OR 375 > 10000] result [Passed] --- FX Bot ---

AtifaFahmeen commented 5 years ago

Project : FX SQL Test

Job : Default

Env : Default

Region : US_WEST_2

Result : pass

Status Code : 404

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=NjA1MzA3ZmMtOGRlNS00OTRkLThjZmQtNjczZmYwMmY0NzEw; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 23 Jan 2019 06:51:56 GMT]}

Endpoint : http://localhost:8080/api/v1/api/v1/abac?page=

Request :

Response :
{ "timestamp" : "2019-01-23T06:51:57.563+0000", "status" : 404, "error" : "Not Found", "message" : "No message available", "path" : "/api/v1/api/v1/abac" }

Logs :
Assertion [@StatusCode != 404] resolved-to [404 != 404] result [Failed]Assertion [@ResponseTime < 7000 OR @ResponseTime > 10000] resolved-to [10577 < 7000 OR 10577 > 10000] result [Passed] --- FX Bot ---

AtifaFahmeen commented 5 years ago

Project : FX SQL Test

Job : Default

Env : Default

Region : US_WEST_2

Result : fail

Status Code : 404

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=OTJjMjlkOGItYzBlYS00ZTA2LTljNDUtZjVmOTc2ZjkxMWQ5; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 23 Jan 2019 09:57:08 GMT]}

Endpoint : http://localhost:8080/api/v1/api/v1/abac?page=

Request :

Response :
{ "timestamp" : "2019-01-23T09:57:08.516+0000", "status" : 404, "error" : "Not Found", "message" : "No message available", "path" : "/api/v1/api/v1/abac" }

Logs :
2019-01-23 09:57:08 DEBUG [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : URL [http://localhost:8080/api/v1/api/v1/abac?page=] 2019-01-23 09:57:08 DEBUG [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : Method [GET] 2019-01-23 09:57:08 DEBUG [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : Request [] 2019-01-23 09:57:08 DEBUG [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic RlhMYWJzLy9hZG1pbkBmeGxhYnMuaW86YWRtaW4xMjMk]}] 2019-01-23 09:57:08 DEBUG [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : Response [{ "timestamp" : "2019-01-23T09:57:08.516+0000", "status" : 404, "error" : "Not Found", "message" : "No message available", "path" : "/api/v1/api/v1/abac" }] 2019-01-23 09:57:08 DEBUG [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : 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=OTJjMjlkOGItYzBlYS00ZTA2LTljNDUtZjVmOTc2ZjkxMWQ5; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 23 Jan 2019 09:57:08 GMT]}] 2019-01-23 09:57:08 DEBUG [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : StatusCode [404] 2019-01-23 09:57:08 DEBUG [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : Time [11059] 2019-01-23 09:57:08 DEBUG [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : Size [139] 2019-01-23 09:57:08 INFO [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : Assertion [@ResponseTime < 7000 OR @ResponseTime > 10000] resolved-to [11059 < 7000 OR 11059 > 10000] result [Passed] 2019-01-23 09:57:08 ERROR [ApiV1AbacGetQueryParamPageMysqlSqlInjectionTimebound] : Assertion [@StatusCode != 404] resolved-to [404 != 404] result [Failed]

--- FX Bot ---