Invision Community (aka IPS Community Suite) before 4.6.0 allows eval-based PHP code injection by a moderator because the IPS\cms\modules\front\pages\_builder::previewBlock method interacts unsafely with the IPS\_Theme::runProcessFunction method.
{"id": "CVE-2021-32924", "vendorId": null, "type": "cve", "bulletinFamily": "NVD", "title": "CVE-2021-32924", "description": "Invision Community (aka IPS Community Suite) before 4.6.0 allows eval-based PHP code injection by a moderator because the IPS\\cms\\modules\\front\\pages\\_builder::previewBlock method interacts unsafely with the IPS\\_Theme::runProcessFunction method.", "published": "2021-06-01T18:15:00", "modified": "2021-06-16T14:29:00", "cvss": {"score": 6.0, "vector": "AV:N/AC:M/Au:S/C:P/I:P/A:P"}, "cvss2": {"cvssV2": {"version": "2.0", "vectorString": "AV:N/AC:M/Au:S/C:P/I:P/A:P", "accessVector": "NETWORK", "accessComplexity": "MEDIUM", "authentication": "SINGLE", "confidentialityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "baseScore": 6.0}, "severity": "MEDIUM", "exploitabilityScore": 6.8, "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-32924", "reporter": "cve@mitre.org", "references": ["https://hackerone.com/reports/1092574", "http://seclists.org/fulldisclosure/2021/May/80", "http://packetstormsecurity.com/files/162868/IPS-Community-Suite-4.5.4.2-PHP-Code-Injection.html", "http://karmainsecurity.com/KIS-2021-04", "https://invisioncommunity.com/features/security/"], "cvelist": ["CVE-2021-32924"], "immutableFields": [], "lastseen": "2022-03-23T18:34:08", "viewCount": 48, "enchantments": {"dependencies": {"references": [{"type": "packetstorm", "idList": ["PACKETSTORM:162868"]}, {"type": "zdt", "idList": ["1337DAY-ID-36317"]}], "rev": 4}, "score": {"value": 4.4, "vector": "NONE"}, "twitter": {"counter": 4, "modified": "2021-06-03T07:38:04", "tweets": [{"link": "https://twitter.com/www_sesin_at/status/1405315587442724864", "text": "New post from https://t.co/9KYxtdZjkl?amp=1 (CVE-2021-32924 (ips_community_suite)) has been published on https://t.co/Ygkj0wzgIm?amp=1"}, {"link": "https://twitter.com/www_sesin_at/status/1405315587442724864", "text": "New post from https://t.co/9KYxtdZjkl?amp=1 (CVE-2021-32924 (ips_community_suite)) has been published on https://t.co/Ygkj0wzgIm?amp=1"}, {"link": "https://twitter.com/WolfgangSesin/status/1405315586314358792", "text": "New post from https://t.co/uXvPWJy6tj?amp=1 (CVE-2021-32924 (ips_community_suite)) has been published on https://t.co/K69tbek8CB?amp=1"}, {"link": "https://twitter.com/WolfgangSesin/status/1405315586314358792", "text": "New post from https://t.co/uXvPWJy6tj?amp=1 (CVE-2021-32924 (ips_community_suite)) has been published on https://t.co/K69tbek8CB?amp=1"}]}, "backreferences": {"references": [{"type": "packetstorm", "idList": ["PACKETSTORM:162868"]}, {"type": "zdt", "idList": ["1337DAY-ID-36317"]}]}, "exploitation": null, "vulnersScore": 4.4}, "_state": {"dependencies": 0}, "_internal": {}, "cna_cvss": {"cna": null, "cvss": {}}, "cpe": [], "cpe23": [], "cwe": ["CWE-94"], "affectedSoftware": [{"cpeName": "invisioncommunity:ips_community_suite", "version": "4.6.0", "operator": "lt", "name": "invisioncommunity ips community suite"}], "affectedConfiguration": [], "cpeConfiguration": {"CVE_data_version": "4.0", "nodes": [{"operator": "OR", "children": [], "cpe_match": [{"vulnerable": true, "cpe23Uri": "cpe:2.3:a:invisioncommunity:ips_community_suite:4.6.0:*:*:*:*:*:*:*", "versionEndExcluding": "4.6.0", "cpe_name": []}]}]}, "extraReferences": [{"url": "https://hackerone.com/reports/1092574", "name": "https://hackerone.com/reports/1092574", "refsource": "MISC", "tags": ["Exploit", "Issue Tracking", "Third Party Advisory"]}, {"url": "http://seclists.org/fulldisclosure/2021/May/80", "name": "20210528 [KIS-2021-04] IPS Community Suite <= 4.5.4.2 (previewBlock) PHP Code Injection Vulnerability", "refsource": "FULLDISC", "tags": ["Exploit", "Mailing List", "Third Party Advisory"]}, {"url": "http://packetstormsecurity.com/files/162868/IPS-Community-Suite-4.5.4.2-PHP-Code-Injection.html", "name": "http://packetstormsecurity.com/files/162868/IPS-Community-Suite-4.5.4.2-PHP-Code-Injection.html", "refsource": "MISC", "tags": ["Exploit", "Third Party Advisory", "VDB Entry"]}, {"url": "http://karmainsecurity.com/KIS-2021-04", "name": "http://karmainsecurity.com/KIS-2021-04", "refsource": "MISC", "tags": ["Third Party Advisory"]}, {"url": "https://invisioncommunity.com/features/security/", "name": "https://invisioncommunity.com/features/security/", "refsource": "MISC", "tags": ["Vendor Advisory"]}]}
{"zdt": [{"lastseen": "2021-12-03T01:57:32", "description": "IPS Community Suite versions 4.5.4.2 and below suffer from a PHP code injection vulnerability. The vulnerability exists because the IPS\\cms\\modules\\front\\pages\\_builder::previewBlock() method allows to pass arbitrary content to the IPS\\_Theme::runProcessFunction() method, which will be used in a call to the eval() PHP function. This can be exploited to inject and execute arbitrary PHP code. Successful exploitation of this vulnerability requires an account with permission to manage the sidebar (such as a Moderator or Administrator) and the \"cms\" application to be enabled.", "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "integrityImpact": "HIGH", "baseScore": 8.8, "privilegesRequired": "LOW", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "userInteraction": "NONE", "version": "3.1"}, "impactScore": 5.9}, "published": "2021-05-31T00:00:00", "type": "zdt", "title": "IPS Community Suite 4.5.4.2 PHP Code Injection Vulnerability", "bulletinFamily": "exploit", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 6.8, "obtainAllPrivilege": false, "userInteractionRequired": false, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 6.0, "vectorString": "AV:N/AC:M/Au:S/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "SINGLE"}, "acInsufInfo": false, "impactScore": 6.4, "obtainUserPrivilege": false}, "cvelist": ["CVE-2021-32924"], "modified": "2021-05-31T00:00:00", "id": "1337DAY-ID-36317", "href": "https://0day.today/exploit/description/36317", "sourceData": "------------------------------------------------------------------------------\nIPS Community Suite <= 4.5.4.2 (previewBlock) PHP Code Injection \nVulnerability\n------------------------------------------------------------------------------\n\n\n[-] Software Link:\n\nhttps://invisioncommunity.com\n\n\n[-] Affected Versions:\n\nVersion 4.5.4.2 and prior versions.\n\n\n[-] Vulnerability Description:\n\nThe vulnerability exists because the \nIPS\\cms\\modules\\front\\pages\\_builder::previewBlock() method allows to \npass arbitrary content to the IPS\\_Theme::runProcessFunction() method, \nwhich will be used in a call to the eval() PHP function. This can be \nexploited to inject and execute arbitrary PHP code. Successful \nexploitation of this vulnerability requires an account with permission \nto manage the sidebar (such as a Moderator or Administrator) and the \n\"cms\" application to be enabled.\n\n\n[-] Proof of Concept:\n\nhttp://[host]/[ips]/index.php?app=cms&module=pages&controller=builder&do=previewBlock&block_plugin=stats&block_template_use_how=copy&block_plugin_app=core&_sending=block_content&block_content=RCE%0ACONTENT;}}phpinfo();die;/*\n\n\n[-] Solution:\n\nApply the vendor patch or upgrade to version 4.6.0 or later.\n\n\n[-] Disclosure Timeline:\n\n[02/02/2021] - Vendor notified through HackerOne\n[02/04/2021] - Asked for an update\n[06/04/2021] - Vendor replies they already released a targeted patch\n[13/05/2021] - CVE number assigned\n[28/05/2021] - Public disclosure\n\n\n[-] CVE Reference:\n\nThe Common Vulnerabilities and Exposures project (cve.mitre.org)\nhas assigned the name CVE-2021-32924 to this vulnerability.\n\n\n[-] Credits:\n\nVulnerability discovered by Egidio Romano.\n\n\n[-] Other References:\n\nhttps://hackerone.com/reports/1092574\n\n\n[-] Original Advisory:\n\nhttp://karmainsecurity.com/KIS-2021-04\n", "sourceHref": "https://0day.today/exploit/36317", "cvss": {"score": 6.0, "vector": "AV:N/AC:M/Au:S/C:P/I:P/A:P"}}], "packetstorm": [{"lastseen": "2021-05-31T14:36:01", "description": "", "published": "2021-05-31T00:00:00", "type": "packetstorm", "title": "IPS Community Suite 4.5.4.2 PHP Code Injection", "bulletinFamily": "exploit", "cvelist": ["CVE-2021-32924"], "modified": "2021-05-31T00:00:00", "id": "PACKETSTORM:162868", "href": "https://packetstormsecurity.com/files/162868/IPS-Community-Suite-4.5.4.2-PHP-Code-Injection.html", "sourceData": "`------------------------------------------------------------------------------ \nIPS Community Suite <= 4.5.4.2 (previewBlock) PHP Code Injection \nVulnerability \n------------------------------------------------------------------------------ \n \n \n[-] Software Link: \n \nhttps://invisioncommunity.com \n \n \n[-] Affected Versions: \n \nVersion 4.5.4.2 and prior versions. \n \n \n[-] Vulnerability Description: \n \nThe vulnerability exists because the \nIPS\\cms\\modules\\front\\pages\\_builder::previewBlock() method allows to \npass arbitrary content to the IPS\\_Theme::runProcessFunction() method, \nwhich will be used in a call to the eval() PHP function. This can be \nexploited to inject and execute arbitrary PHP code. Successful \nexploitation of this vulnerability requires an account with permission \nto manage the sidebar (such as a Moderator or Administrator) and the \n\"cms\" application to be enabled. \n \n \n[-] Proof of Concept: \n \nhttp://[host]/[ips]/index.php?app=cms&module=pages&controller=builder&do=previewBlock&block_plugin=stats&block_template_use_how=copy&block_plugin_app=core&_sending=block_content&block_content=RCE%0ACONTENT;}}phpinfo();die;/* \n \n \n[-] Solution: \n \nApply the vendor patch or upgrade to version 4.6.0 or later. \n \n \n[-] Disclosure Timeline: \n \n[02/02/2021] - Vendor notified through HackerOne \n[02/04/2021] - Asked for an update \n[06/04/2021] - Vendor replies they already released a targeted patch \n[13/05/2021] - CVE number assigned \n[28/05/2021] - Public disclosure \n \n \n[-] CVE Reference: \n \nThe Common Vulnerabilities and Exposures project (cve.mitre.org) \nhas assigned the name CVE-2021-32924 to this vulnerability. \n \n \n[-] Credits: \n \nVulnerability discovered by Egidio Romano. \n \n \n[-] Other References: \n \nhttps://hackerone.com/reports/1092574 \n \n \n[-] Original Advisory: \n \nhttp://karmainsecurity.com/KIS-2021-04 \n`\n", "cvss": {"score": 0.0, "vector": "NONE"}, "sourceHref": "https://packetstormsecurity.com/files/download/162868/KIS-2021-04.txt"}]}