Skip to content

fix: catch disabled TLS checks in session calls #500

Closed

Description

@uniqueg

Problem

proTES's semgrep rules (.semgrep/pro-tes.yml) are an early subset of FOCA's shared rules: they lack jwt-decode-unsafe-algorithms, yaml-unsafe-load and tls-verification-disabled, and have no rule tests. The shared rules also miss disabled certificate verification in calls on sessions (e.g., session.get(url, verify=False); ruff's S501 only checks calls of the requests module), and proTES talks to its TES backends through a session. Two JWT gaps came up as well: verify_signature set to None, and the header's alg reaching algorithms through a variable.

The ast-grep rules have the same gaps as before elixir-cloud-aai/prowes#147: string-status-code misses returned tuples in parentheses, and root-logger-call is missing.

Part of elixir-cloud-aai/foca#783.

What to do

  • Take over FOCA's shared semgrep rules, as widened in fix: catch disabled TLS checks in session calls foca#783, with their tests (.semgrep/pro-tes.py, .semgrep/pro-tes.test.yaml), identical apart from paths, and run the rule tests in pre-commit.
  • Port string-status-code and root-logger-call from proWES, with their tests.
  • Fix or suppress (with a reason) whatever the rules find.

Done when

  • session.get(url, verify=False) and the two JWT cases are flagged, and the rule files match FOCA's apart from paths.

Activity

  1. self-assigned this
    on Nov 17, 2026
  2. added
    priority: medium
    status: in progress
    type: security
    workload: hours
    on Nov 17, 2026
  3. moved this from Backlog to In progress in ELIXIR On-Cloudon Nov 17, 2026
  4. moved this from In progress to In review in ELIXIR On-Cloudon Nov 17, 2026
  5. moved this from In review to Done in ELIXIR On-Cloudon Nov 17, 2026
  6. removed
    status: in progress
    on Nov 18, 2026
  7. added this to the v0.7.0 milestone on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: mediumtype: securityworkload: hours

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions