id: squid-eol

info:
  name: Squid End-of-Life - Detect
  author: Shivam Kamboj
  severity: info
  description: |
    Detected Squid proxy versions that have reached End-of-Life (EOL) and no longer receive security updates.
  reference:
    - https://endoflife.date/squid
    - https://www.squid-cache.org/Versions/
  metadata:
    verified: true
    max-request: 1
    shodan-query: "Server: squid/"
  tags: tech,squid,eol

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    extractors:
      - type: regex
        name: version
        part: header
        group: 1
        regex:
          - '(?i)Server:\s*squid/([0-9.]+)'

    matchers:
      - type: dsl
        dsl:
          - compare_versions(version, '<=6.14')
          - contains(tolower(header), 'squid')
        condition: and
# digest: 4a0a0047304502204aa8af83a8ce8cddfacd0f96f562dfa24a9f602e979520bf55c6fcd4ee69d6b8022100d0ec84b4d02b3a6a03fb9244dd51a2b938a5a7b2308fde7e3052b242523c2c65:922c64590222798bb761d5b6d8e72950