AtifaFahmeen / FXT-Testing

0 stars 0 forks source link

FX SQL Test : ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound #52

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=MzZkOTg4ZTMtMjMxYi00MDJiLTk1ZDgtMjYzZDI0M2I0YTg5; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Tue, 22 Jan 2019 09:39:28 GMT]}

Endpoint : http://localhost:8080/api/v1/api/v1/test-suites?pageSize=

Request :

Response :
{ "timestamp" : "2019-01-22T09:39:28.890+0000", "status" : 404, "error" : "Not Found", "message" : "No message available", "path" : "/api/v1/api/v1/test-suites" }

Logs :
2019-01-22 09:39:28 DEBUG [ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound] : URL [http://localhost:8080/api/v1/api/v1/test-suites?pageSize=] 2019-01-22 09:39:28 DEBUG [ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Method [GET] 2019-01-22 09:39:28 DEBUG [ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Request [] 2019-01-22 09:39:28 DEBUG [ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic RlhMYWJzLy9hZG1pbkBmeGxhYnMuaW86YWRtaW4xMjMk]}] 2019-01-22 09:39:28 DEBUG [ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Response [{ "timestamp" : "2019-01-22T09:39:28.890+0000", "status" : 404, "error" : "Not Found", "message" : "No message available", "path" : "/api/v1/api/v1/test-suites" }] 2019-01-22 09:39:28 DEBUG [ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound] : 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=MzZkOTg4ZTMtMjMxYi00MDJiLTk1ZDgtMjYzZDI0M2I0YTg5; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Tue, 22 Jan 2019 09:39:28 GMT]}] 2019-01-22 09:39:28 DEBUG [ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound] : StatusCode [404] 2019-01-22 09:39:28 DEBUG [ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Time [1454] 2019-01-22 09:39:28 DEBUG [ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Size [146] 2019-01-22 09:39:28 INFO [ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Assertion [@ResponseTime < 7000 OR @ResponseTime > 10000] resolved-to [1454 < 7000 OR 1454 > 10000] result [Passed] 2019-01-22 09:39:28 ERROR [ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound] : 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 : 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=MjU0ZTZlOTgtOWRmNS00MDQ5LWFhNzctYTE1MGI2OTdhMWVj; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 23 Jan 2019 05:48:02 GMT]}

Endpoint : http://localhost:8080/api/v1/api/v1/test-suites?pageSize=

Request :

Response :
{ "timestamp" : "2019-01-23T05:48:03.710+0000", "status" : 404, "error" : "Not Found", "message" : "No message available", "path" : "/api/v1/api/v1/test-suites" }

Logs :
Assertion [@ResponseTime < 7000 OR @ResponseTime > 10000] resolved-to [580 < 7000 OR 580 > 10000] result [Passed]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 : 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=ZDE3ODMyNTktNTQxYy00NjY2LTk5NmYtM2ZmMzMxYmMzZTM4; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 23 Jan 2019 05:55:22 GMT]}

Endpoint : http://localhost:8080/api/v1/api/v1/test-suites?pageSize=

Request :

Response :
{ "timestamp" : "2019-01-23T05:55:23.563+0000", "status" : 404, "error" : "Not Found", "message" : "No message available", "path" : "/api/v1/api/v1/test-suites" }

Logs :
Assertion [@ResponseTime < 7000 OR @ResponseTime > 10000] resolved-to [676 < 7000 OR 676 > 10000] result [Passed]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 : 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=MDE3ZjFiYzAtODY2Yi00NWIyLThlYmUtM2EzZThlNTA4Njgx; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 23 Jan 2019 06:53:15 GMT]}

Endpoint : http://localhost:8080/api/v1/api/v1/test-suites?pageSize=

Request :

Response :
{ "timestamp" : "2019-01-23T06:53:15.610+0000", "status" : 404, "error" : "Not Found", "message" : "No message available", "path" : "/api/v1/api/v1/test-suites" }

Logs :
2019-01-23 06:53:15 DEBUG [ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound] : URL [http://localhost:8080/api/v1/api/v1/test-suites?pageSize=] 2019-01-23 06:53:15 DEBUG [ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Method [GET] 2019-01-23 06:53:15 DEBUG [ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Request [] 2019-01-23 06:53:15 DEBUG [ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic RlhMYWJzLy9hZG1pbkBmeGxhYnMuaW86YWRtaW4xMjMk]}] 2019-01-23 06:53:15 DEBUG [ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Response [{ "timestamp" : "2019-01-23T06:53:15.610+0000", "status" : 404, "error" : "Not Found", "message" : "No message available", "path" : "/api/v1/api/v1/test-suites" }] 2019-01-23 06:53:15 DEBUG [ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound] : 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=MDE3ZjFiYzAtODY2Yi00NWIyLThlYmUtM2EzZThlNTA4Njgx; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 23 Jan 2019 06:53:15 GMT]}] 2019-01-23 06:53:15 DEBUG [ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound] : StatusCode [404] 2019-01-23 06:53:15 DEBUG [ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Time [8541] 2019-01-23 06:53:15 DEBUG [ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Size [146] 2019-01-23 06:53:15 ERROR [ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Assertion [@ResponseTime < 7000 OR @ResponseTime > 10000] resolved-to [8541 < 7000 OR 8541 > 10000] result [Failed] 2019-01-23 06:53:15 ERROR [ApiV1TestSuitesGetQueryParamPagesizeMysqlSqlInjectionTimebound] : 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 : 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=MzQwOWExZmYtOTQ2Yi00NTg3LWI3ZDUtODg5ZjRkNTYxYTll; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 23 Jan 2019 09:57:28 GMT]}

Endpoint : http://localhost:8080/api/v1/api/v1/test-suites?pageSize=

Request :

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

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

--- FX Bot ---