HexBrain

Browse / CVEs / CVE-2020-36112

CVE-2020-36112· cse bookstore project / cse bookstore· CWE-89

CSE Bookstore 1.0 - SQL Injection

criticalseverity
9.8CVSS score
17.6%likelihood of exploitation, next 30 days
97%of all CVEs are less likely
Readycheck to confirm it

CSE Bookstore version 1.0 is vulnerable to time-based blind, boolean-based blind and OR error-based SQL injection in pubid parameter in bookPerPub.php. A successful exploitation of this vulnerability will lead to an attacker dumping the entire database.

Impact

Unauthenticated attackers can execute SQL injection to dump the entire database including sensitive student and administrative data.

Fix

Upgrade to the latest version to mitigate this vulnerability.

How to confirm it

Send: GET /ebook/bookPerPub.php?pubid=4'
Positive when: contains "get book price failed! You have an error in your SQL syntax" or "Can't retrieve data You have an error in your SQL syntax"

Run it with nuclei: nuclei -id CVE-2020-36112 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2020-36112

info:
  name: CSE Bookstore 1.0 - SQL Injection
  author: geeknik
  severity: critical
  description: CSE Bookstore version 1.0 is vulnerable to time-based blind, boolean-based blind and OR error-based SQL injection in pubid parameter in bookPerPub.php. A successful exploitation of this vulnerability will lead to an attacker dumping the entire database.
  impact: |
    Unauthenticated attackers can execute SQL injection to dump the entire database including sensitive student and administrative data.
  remediation: |
    Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/49314
    - https://www.tenable.com/cve/CVE-2020-36112
    - https://nvd.nist.gov/vuln/detail/CVE-2020-36112
    - https://github.com/StarCrossPortal/scalpel
    - https://github.com/anonymous364872/Rapier_Tool
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2020-36112
    cwe-id: CWE-89
    epss-score: 0.1759
    epss-percentile: 0.97168
    cpe: cpe:2.3:a:cse_bookstore_project:cse_bookstore:1.0:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: cse_bookstore_project
    product: cse_bookstore
  tags: cve,cve2020,sqli,cse,edb,tenable,cse_bookstore_project,vkev,vuln

http:
  - raw:
      - |
        GET /ebook/bookPerPub.php?pubid=4' HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: word
        part: body
        words:
          - "get book price failed! You have an error in your SQL syntax"
          - "Can't retrieve data You have an error in your SQL syntax"
        condition: or

References

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