TUCoPS :: Web BBS :: Frequently Exploited :: hack3281.htm

YaBB forum vuln (Perl version without SQL)
Vulnerability in YaBB forum (Perl version without SQL)



There's a vulnerability in non-SQL version of YaBB forum (I've checked it with YaBB 1 Gold - SP 1.2 written in Perl -- it's not new, but is in use even nowadays).



You can input almost anything into .txt file from boards directory. The "subject" form field isn't checked for "\n" symbols, so creating of a thread with such subject:



"test

of

vulnerability"



will add to the current board .txt file these strings:



"|test

of

vulnerability|||||||"







To fix the problem look at sub Post2 in Post.pl and add this:



$subject =~ s/\n/ /g;



after this line:



$subject = $FORM{'subject'};

TUCoPS is optimized to look best in Firefox® on a widescreen monitor (1440x900 or better).
Site design & layout copyright © 1986-2024 AOH