mcGallery PRO vuln.
Vuln. dicovered by : r0t Date: 13 dec. 2005 orginal advisory:http://pridels.blogspot.com/2005/12/mcgallery-pro-vuln.html vendor:http://mcgallerypro.com/ affected version: 2.2 and prior
A Pro version of mcGallery. Features: Displays photos, videos and Flash movies; Create thumbnails for photos; Multi-level restricted access; Unlimited number of albums; albums sorted in categories, News system ; Complete admin panel with stats, members administration, design settings; Users can post comments, send e-cards, choose interface language, build their own albums, and download their selection as zip file; Slideshow and user upload with moderation; Automated installation; 7 language files; Frontpage compliance; "register-globals off" compliance. WAP ability for admin, multiple admins, smilies in comments and ecards. Top Ten, upload by email, PNG support, WMV support,and plenty of new little settings. Last added: complete guestbook system.
1.Local file include: Input passed to the "language" parameter in "index.php" isn't properly verified, before it is used to include files. This can be exploited to include arbitrary files from local resources.
2.SQL: mcGallery PRO contains a flaw that allows a remote sql injection attacks.Input passed to the "id" "start" "album" "rand" parameter isn't properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code
3.XSS: mcGallery PRO contains a flaw that allows a remote cross site scripting attack. This flaw exists because input passed to search module parameters isn't properly sanitised before being returned to the user. This could allow a user to create a specially crafted URL that would execute arbitrary code in a user's browser within the trust relationship between the browser and the server, leading to a loss of integrity.
/show.php?start=0&id=[SQL] /show.php?start=[SQL] /index.php?album=[SQL] /show.php?rand=1&id=[SQL] /show.php?rand=[SQL]
Solution: Edit the source code to ensure that input is properly sanitised.