AtifaFahmeen / FXT-Testing

0 stars 0 forks source link

FX SQL Test : ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound #158

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

Endpoint : http://localhost:8080/api/v1/api/v1/orgs/search?pageSize=

Request :

Response :
{ "timestamp" : "2019-01-23T05:50:34.631+0000", "status" : 404, "error" : "Not Found", "message" : "No message available", "path" : "/api/v1/api/v1/orgs/search" }

Logs :
2019-01-23 05:50:34 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : URL [http://localhost:8080/api/v1/api/v1/orgs/search?pageSize=] 2019-01-23 05:50:34 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Method [GET] 2019-01-23 05:50:34 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Request [] 2019-01-23 05:50:34 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic RlhMYWJzLy9hZG1pbkBmeGxhYnMuaW86YWRtaW4xMjMk]}] 2019-01-23 05:50:34 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Response [{ "timestamp" : "2019-01-23T05:50:34.631+0000", "status" : 404, "error" : "Not Found", "message" : "No message available", "path" : "/api/v1/api/v1/orgs/search" }] 2019-01-23 05:50:34 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : 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=NGE3NmU4MzUtYmUxYi00NmU4LWE5ZWItYzMwZWRiMDAzMTc0; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 23 Jan 2019 05:50:34 GMT]}] 2019-01-23 05:50:34 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : StatusCode [404] 2019-01-23 05:50:34 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Time [548] 2019-01-23 05:50:34 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Size [146] 2019-01-23 05:50:34 INFO [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Assertion [@ResponseTime < 7000 OR @ResponseTime > 10000] resolved-to [548 < 7000 OR 548 > 10000] result [Passed] 2019-01-23 05:50:34 ERROR [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : 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=MzllZGI3YWYtM2FkMy00NTA2LWEzZDEtNzY4YzBhMGE4MzA5; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 23 Jan 2019 05:56:52 GMT]}

Endpoint : http://localhost:8080/api/v1/api/v1/orgs/search?pageSize=

Request :

Response :
{ "timestamp" : "2019-01-23T05:56:52.602+0000", "status" : 404, "error" : "Not Found", "message" : "No message available", "path" : "/api/v1/api/v1/orgs/search" }

Logs :
2019-01-23 05:56:52 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : URL [http://localhost:8080/api/v1/api/v1/orgs/search?pageSize=] 2019-01-23 05:56:52 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Method [GET] 2019-01-23 05:56:52 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Request [] 2019-01-23 05:56:52 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic RlhMYWJzLy9hZG1pbkBmeGxhYnMuaW86YWRtaW4xMjMk]}] 2019-01-23 05:56:52 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Response [{ "timestamp" : "2019-01-23T05:56:52.602+0000", "status" : 404, "error" : "Not Found", "message" : "No message available", "path" : "/api/v1/api/v1/orgs/search" }] 2019-01-23 05:56:52 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : 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=MzllZGI3YWYtM2FkMy00NTA2LWEzZDEtNzY4YzBhMGE4MzA5; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 23 Jan 2019 05:56:52 GMT]}] 2019-01-23 05:56:52 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : StatusCode [404] 2019-01-23 05:56:52 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Time [695] 2019-01-23 05:56:52 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Size [146] 2019-01-23 05:56:52 INFO [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Assertion [@ResponseTime < 7000 OR @ResponseTime > 10000] resolved-to [695 < 7000 OR 695 > 10000] result [Passed] 2019-01-23 05:56:52 ERROR [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : 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=MjZiMzBjYzctZjgyYi00ZDljLWI4YjEtMDY3Zjc2NmIzOWNi; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 23 Jan 2019 06:56:16 GMT]}

Endpoint : http://localhost:8080/api/v1/api/v1/orgs/search?pageSize=

Request :

Response :
{ "timestamp" : "2019-01-23T06:56:16.484+0000", "status" : 404, "error" : "Not Found", "message" : "No message available", "path" : "/api/v1/api/v1/orgs/search" }

Logs :
2019-01-23 06:56:16 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : URL [http://localhost:8080/api/v1/api/v1/orgs/search?pageSize=] 2019-01-23 06:56:16 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Method [GET] 2019-01-23 06:56:16 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Request [] 2019-01-23 06:56:16 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Request-Headers [{Content-Type=[application/json], Accept=[application/json], Authorization=[Basic RlhMYWJzLy9hZG1pbkBmeGxhYnMuaW86YWRtaW4xMjMk]}] 2019-01-23 06:56:16 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Response [{ "timestamp" : "2019-01-23T06:56:16.484+0000", "status" : 404, "error" : "Not Found", "message" : "No message available", "path" : "/api/v1/api/v1/orgs/search" }] 2019-01-23 06:56:16 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : 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=MjZiMzBjYzctZjgyYi00ZDljLWI4YjEtMDY3Zjc2NmIzOWNi; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 23 Jan 2019 06:56:16 GMT]}] 2019-01-23 06:56:16 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : StatusCode [404] 2019-01-23 06:56:16 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Time [627] 2019-01-23 06:56:16 DEBUG [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Size [146] 2019-01-23 06:56:16 INFO [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : Assertion [@ResponseTime < 7000 OR @ResponseTime > 10000] resolved-to [627 < 7000 OR 627 > 10000] result [Passed] 2019-01-23 06:56:16 ERROR [ApiV1OrgsSearchGetQueryParamPagesizeMysqlSqlInjectionTimebound] : 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=MjVjNmIzNTktODM2MS00NTUzLWFjMTAtMDQxZjQ3YTJhM2Ez; Path=/; HttpOnly], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 23 Jan 2019 10:00:00 GMT]}

Endpoint : http://localhost:8080/api/v1/api/v1/orgs/search?pageSize=

Request :

Response :
{ "timestamp" : "2019-01-23T10:00:00.643+0000", "status" : 404, "error" : "Not Found", "message" : "No message available", "path" : "/api/v1/api/v1/orgs/search" }

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