Authenticated administrators can execute arbitrary SQL commands (there is no CSRF protection). There is also XSS with the same parameter.
1. SQL injection (pk_stt2_db_get_popular_terms())
Method: GET
Vulnerable parameter: count
Example PHP callstack:
pk_stt2_admin_print_searchterms [/searchterms-tagging-2/searchterms-tagging2.php:239]
pk_stt2_db_get_popular_terms [/searchterms-tagging-2/searchterms-tagging2.php:729]
wpdb::get_results
Verification:
Similar SQL injections in:
pk_stt2_db_get_search_terms
pk_stt2_db_get_recent_terms
pk_stt2_db_get_random_terms
pk_stt2_db_get_home_keywords
pk_stt2_db_get_popular_terms
pk_stt2_db_get_popular_tags
pk_stt2_db_get_last_promoted_post_title
pk_stt2_db_get_posts_wo_traffic
2. XSS
Method: GET
Vulnerable parameter: count
Verification:
--
Pozdrawiam,
Marcin Probola,