Multiple vulnerabilities have been discovered in Site@School, which can be exploited by malicious users to conduct SQL injection attacks and compromise a vulnerable system and by malicious people to conduct cross-site scripting and SQL injection attacks.
1) Input passed to the "q" parameter in index.php (when "r", "page", and "section" are set) is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
2) Input passed to the "album_name" parameter in starnet/addons/slideshow_full.php is not properly sanitised before being used in an SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
3) An error exists within the handling of file uploads in "sas_move_uploaded_file()" when a filename has multiple file extensions. This can be exploited to upload malicious script files (e.g. a PHP script) to the server.
Successful exploitation allows execution of arbitrary script code on certain configurations (e.g. if running an Apache server with "mod_mime" enabled), but requires a valid user session.
NOTE: An attacker without valid credentials can exploit vulnerability #3 by using vulnerability #2 to obtain a valid session identifier.
4) Input passed via the "module_number" parameter to starnet/index.php (when "option" is set to "modulemanager" and "modoption" is set to "edit") is not properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
5) Input passed via the "module" parameter to starnet/index.php (when "option" is set to "modulemanager") is not properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
6) Input passed via the "suboption" parameter to starnet/index.php (when "option" is set to "stats") is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
7) Input passed via the "site" parameter to starnet/index.php (when "option" is set to "pagemanager" and "suboption" is set to "newsection") is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
8) Input passed via the "module_number" parameter to starnet/index.php (when "option" is set to "modulemanager" and "modoption" is set to "edit") is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
9) Input passed via the "module" parameter to starnet/index.php (when "option" is set to "modulemanager") is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
The vulnerabilities are confirmed in version 2.4.10. Other versions may also be affected.