2007-04-24 20:15:51 +00:00
|
|
|
--- evolution-data-server-1.10.1/camel/providers/pop3/camel-pop3-store.c.apop-auth-vulnerability 2007-04-09 08:42:37.000000000 -0400
|
2007-04-30 20:58:25 +00:00
|
|
|
+++ evolution-data-server-1.10.1/camel/providers/pop3/camel-pop3-store.c 2007-04-30 16:42:12.000000000 -0400
|
2007-04-24 20:15:51 +00:00
|
|
|
@@ -34,6 +34,7 @@
|
|
|
|
#include <string.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <errno.h>
|
|
|
|
+#include <ctype.h>
|
|
|
|
|
|
|
|
#include "camel-operation.h"
|
|
|
|
|
2007-04-30 20:58:25 +00:00
|
|
|
@@ -489,7 +490,21 @@
|
2007-04-24 20:15:51 +00:00
|
|
|
} else if (strcmp(service->url->authmech, "+APOP") == 0 && store->engine->apop) {
|
|
|
|
char *secret, md5asc[33], *d;
|
|
|
|
unsigned char md5sum[16], *s;
|
2007-04-30 20:58:25 +00:00
|
|
|
-
|
2007-04-24 20:15:51 +00:00
|
|
|
+
|
|
|
|
+ d = store->engine->apop;
|
|
|
|
+
|
|
|
|
+ while (*d != '\0') {
|
|
|
|
+ if (!isascii((int)*d)) {
|
2007-04-30 20:58:25 +00:00
|
|
|
+
|
2007-04-24 20:15:51 +00:00
|
|
|
+ camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_URL_INVALID,
|
2007-04-30 20:58:25 +00:00
|
|
|
+ _("Unable to connect to POP server %s: "),
|
2007-04-24 20:15:51 +00:00
|
|
|
+ CAMEL_SERVICE (store)->url->host);
|
|
|
|
+
|
|
|
|
+ return FALSE;
|
|
|
|
+ }
|
|
|
|
+ d++;
|
|
|
|
+ }
|
2007-04-30 20:58:25 +00:00
|
|
|
+
|
2007-04-24 20:15:51 +00:00
|
|
|
secret = g_alloca(strlen(store->engine->apop)+strlen(service->url->passwd)+1);
|
|
|
|
sprintf(secret, "%s%s", store->engine->apop, service->url->passwd);
|
2007-04-30 20:58:25 +00:00
|
|
|
md5_get_digest(secret, strlen (secret), md5sum);
|