{"exploit":{"id":"EDB-50685","name":"WordPress Plugin Mortgage Calculators WP 1.52 - Authenticated Stored Cross-Site Scripting (XSS)","description":"WordPress Plugin Mortgage Calculators WP 1.52 - Authenticated Stored Cross-Site Scripting (XSS)","cves":["CVE-2021-24904"],"author":"Ceylan BOZOĞULLARINDAN","published":"2022-01-27","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/50685","path":"exploits/php/webapps/50685.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-50685.txt","vulnerabilities":[{"id":"CVE-2021-24904","state":"PUBLISHED","title":"Mortgage Calculators WP < 1.56 - Admin+ Stored Cross-Site Scripting","titleSource":"CVE Program","description":"The Mortgage Calculators WP WordPress plugin before 1.56 does not implement any sanitisation on the color setting of the background of a calculator, which could allow high privilege users to perform Stored Cross-Site Scripting attacks even when the unfiltered_html capability is disallowed.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2021-24904","cvss":{"version":"3.1","baseScore":4.8,"severity":"medium","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2021-24904"},"updatedAt":"2024-08-03T19:49:13.405Z","retrievedAt":"2026-11-27T11:08:56.739Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-50685.png?v=2","url":"https://exploitbin.com/exploits/EDB-50685","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-50685/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-50685/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: WordPress Plugin Mortgage Calculators WP 1.52 - Stored Cross-Site Scripting (XSS) (Authenticated)\n# Date: 25-10-2021\n# Exploit Author: Ceylan Bozogullarindan\n# Vendor Homepage: https://lenderd.com/\n# Software Link: https://mortgagecalculatorsplugin.com/\n# Version: 1.52\n# Tested on: Linux\n# CVE : CVE-2021-24904 (https://wpscan.com/vulnerability/7b80f89b-e724-41c5-aa03-21d1eef50f21)\n\n\n# Description:\nThe plugin gives users real-time estimates by providing mortgage calculators. It does not implement any sanitisation on the color value of the background of a calculator in admin panel, which could lead to authenticated Stored Cross-Site Scripting issues. An attacker can execute malicious javascript codes for all visitors of a page containing the calculator.\n\n\n# Steps To Reproduce:\n1. Go to settings page available under the \"Calculator\" menu item.\n2. Click the \"Select Color\" button and type the following payload the input space: `hacked</style></head><script>alert(1)</script>`\n3. Click the \"Save Changes\" button to save settings.\n4. Create a new page and add the shortcode ([mcwp type=\"cv\"]) of the calculator, for testing.\n5. Visit the page to trigger XSS.","sha256":"a3c0b5ecc0953ed3a5befa13245cf5f289bd62d9165a87c2c61b74f46664c63a","bytes":1182,"fetchedAt":"2026-11-27T11:08:56.517Z","encoding":"utf-8 (display only; download retains original bytes)"}