tech-by-design / polyglot-prime

Primary monorepo for TechBD polyglot bespoke code
https://tech-by-design.github.io/polyglot-prime/
GNU Affero General Public License v3.0
2 stars 21 forks source link

Penetration Testing #615

Open ratheesh-kr opened 2 weeks ago

ratheesh-kr commented 2 weeks ago

Do Penetration Testing in TechDB devl and stage environments and solve the issues detected.

anoopvarma-2000-p commented 2 weeks ago

Possible SQL Injection

Risk Rating: CRITICAL

PR Link for the fixes

Affected URLs GET Requests:https://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/cron_job_details.jsonhttps://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/fhir_needs_attention.jsonhttps://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/fhir_needs_attention_details/qe_name/healthix.jsonhttps://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/fhir_patient_screening_questions_answers/hub_interaction_id/8063f4f9-3dc5-4076-8999-0ddebe675d87/patient_mrn/healthix-20240920-testcase404-MRN.jsonhttps://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/fhir_screening_info.jsonhttps://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/fhir_session_diagnostics.jsonhttps://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/fhir_validation_issue.jsonhttps://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/interaction_http_fhir_request.jsonhttps://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/interaction_http_request.jsonhttps://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/interaction_http_request_forward_failure.jsonhttps://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/interaction_http_request_payload/interaction_id/819a8445-1c36-45e9-ae81-e230a39c8c1a.jsonhttps://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/interaction_http_request_summary.jsonhttps://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/interaction_http_request_summary_details/tenant_id_lower/healthix/client_ip_address/74.201.253.244.jsonhttps://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/interaction_observe.jsonhttps://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/interaction_sftp.jsonhttps://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/interaction_user_details/user_session/407B3ABBEA73A65AC5342AF44A0B6AB8.jsonhttps://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/interaction_user_list.jsonhttps://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/islm_migration_state.jsonhttps://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/orch_session_diagnostics.jsonhttps://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/orch_session_diagnostics_rejection.json POST Requests:https://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/cron_job_details.json [Parameters - "startRow", "endRow", "rowGroupCols", "valueCols":, "pivotCols", pivotMode", "groupKeys", "filterModel", "sortModel", "sort": "desc", "colId"] ● https://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/fhir_needs_attention.json [Parameters - "startRow", "endRow", "rowGroupCols", "valueCols":, "pivotCols", pivotMode", "groupKeys", "filterModel", "sortModel", "sort": "desc", "colId"] ● https://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/fhir_screening_info.json [Parameters - "startRow", "endRow", "rowGroupCols", "valueCols":, "pivotCols", pivotMode", "groupKeys", "filterModel", "sortModel", "sort": "desc", "colId"] ● https://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/fhir_screening_info.json [Parameters - "startRow", "endRow", "rowGroupCols", "valueCols":, "pivotCols", pivotMode", "groupKeys", "filterModel", "sortModel", "sort": "desc", "colId"] ● https://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/fhir_session_diagnostics.js on [Parameters - "startRow", "endRow", "rowGroupCols", "valueCols":, "pivotCols", pivotMode", "groupKeys", "filterModel", "sortModel", "sort": "desc", "colId"] ● https://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/fhir_validation_issue.json [Parameters - "startRow", "endRow", "rowGroupCols", "valueCols":, "pivotCols", pivotMode", "groupKeys", "filterModel", "sortModel", "sort": "desc", "colId"] ● https://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/interaction_http_fhir_reque st.json [Parameters - "startRow", "endRow", "rowGroupCols", "valueCols":, "pivotCols", pivotMode", "groupKeys", "filterModel", "sortModel", "sort": "desc", "colId"] ● https://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/interaction_http_request.js on [Parameters - "startRow", "endRow", "rowGroupCols", "valueCols":, "pivotCols", pivotMode", "groupKeys", "filterModel", "sortModel", "sort": "desc", "colId"] ● https://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/interaction_http_request_f orward_failure.json [Parameters - "startRow", "endRow", "rowGroupCols", "valueCols":, "pivotCols", pivotMode", "groupKeys", "filterModel", "sortModel", "sort": "desc", "colId"] ● https://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/interaction_http_request_summary.json [Parameters - "startRow", "endRow", "rowGroupCols", "valueCols":, "pivotCols", pivotMode", "groupKeys", "filterModel", "sortModel", "sort": "desc", "colId"] ● https://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/interaction_observe.json [Parameters - "startRow", "endRow", "rowGroupCols", "valueCols":, "pivotCols", pivotMode", "groupKeys", "filterModel", "sortModel", "sort": "desc", "colId"] ● https://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/interaction_sftp.json [Parameters - "startRow", "endRow", "rowGroupCols", "valueCols":, "pivotCols", pivotMode", "groupKeys", "filterModel", "sortModel", "sort": "desc", "colId"] ● https://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/interaction_user_list.json [Parameters - "startRow", "endRow", "rowGroupCols", "valueCols":, "pivotCols", pivotMode", "groupKeys", "filterModel", "sortModel", "sort": "desc", "colId"] ● https://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/islm_migration_state.json [Parameters - "startRow", "endRow", "rowGroupCols", "valueCols":, "pivotCols", pivotMode", "groupKeys", "filterModel", "sortModel", "sort": "desc", "colId"] ● https://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/orch_session_diagnostics.json [Parameters - "startRow", "endRow", "rowGroupCols", "valueCols":, "pivotCols", pivotMode", "groupKeys", "filterModel", "sortModel", "sort": "desc", "colId"] ● https://phi.hub.qa.techbd.org/api/ux/tabular/jooq/techbd_udi_ingress/orch_session_diagnostics_rejection.json [Parameters - "startRow", "endRow", "rowGroupCols", "valueCols":, "pivotCols", pivotMode", "groupKeys", "filterModel", "sortModel", "sort": "desc", "colId"]

anoopvarma-2000-p commented 2 weeks ago

Cross Site Scripting (Reflected XSS)

Risk Rating: HIGH

PR Link for the fixes

Affected URLs

anoopvarma-2000-p commented 2 weeks ago

Cookie Found Without 'Secure' Flag

Risk Rating : LOW

PR link for the fixes

anoopvarma-2000-p commented 1 week ago

HTTP Strict Transport Security (HSTS) Policy Not Enabled

Risk Rating: MEDIUM

PR link for the fix