`Russcom.net Loginphp multiple vulnerabilties
Discovered by: Nomenumbra
impact:moderate (privilege escalation,possible defacement)
Russcom.net's loginphp script is a small usermanagement script:
Users can sign up for a username which they can use to login to the password protected main page.
The administrator can delete users. He can also edit the main page.
This script includes the members and help pages.
It is possible to send spoofed mails in MIME-format trough help.php due to improper filtering:
The php mail function is used like:
By following the rules provided in RFC 822 we can inject a message in MIME-format like this:
to get this message:
Subject: Visit www.website.xxx !
A friend thought you might want to see this page : www.website.xxx.
for more information: http://www.securephpwiki.com/index.php/Email_Injection
In the register function you can subscribe with the following username (for example):
<script>alert('xss')</script> the input isn't sanitized so you can insert any XSS (30 char max) and anyone who will visit the page displaying
all users will get XSS'd (potentially cookies stolen).