sendgrid / docs

Repository of Twilio SendGrid's product documentation.
https://sendgrid.com/docs
MIT License
235 stars 966 forks source link

Receiving mails from inbound parse contain stracktraces of DKIM verifier perl script #6483

Closed yvesf closed 3 years ago

yvesf commented 3 years ago

Hello, in the inbound parse callback we receive the following stacktrace in the "dkim" multipart form field. I replaced some more confidential looking strings below with X.

--xYzZY
Content-Disposition: form-data; name="dkim"

{@XXX : invalid (public key: invalid data
 at /opt/perl/lib/site_perl/5.10.1/Mail/DKIM/PublicKey.pm line 186, <> line 10820.
        Mail::DKIM::PublicKey::check('Mail::DKIM::PublicKey=HASH(0x728f1e8)') called at /opt/perl/lib/site_perl/5.10.1/Mail/DKIM/PublicKey.pm line 129
        Mail::DKIM::PublicKey::__ANON__('Net::DNS::RR::TXT=HASH(0x728ef78)') called at /opt/perl/lib/site_perl/5.10.1/Mail/DKIM/DNS.pm line 218
        Mail::DKIM::DNS::__ANON__() called at /opt/perl/lib/site_perl/5.10.1/Mail/DKIM/Signature.pm line 572
        Mail::DKIM::Signature::get_public_key('Mail::DKIM::Signature=HASH(0x72901f0)') called at /opt/perl/lib/site_perl/5.10.1/Mail/DKIM/Verifier.pm line 442
        eval {...} called at /opt/perl/lib/site_perl/5.10.1/Mail/DKIM/Verifier.pm line 441
        Mail::DKIM::Verifier::_check_and_verify_signature('Mail::DKIM::Verifier=HASH(0x78f7a20)', 'Mail::DKIM::Algorithm::rsa_sha256=HASH(0x78d9b38)') called at /opt/perl/lib/site_perl/5.10.1/Mail/DKIM/Verifier.pm line 493
        Mail::DKIM::Verifier::finish_body('Mail::DKIM::Verifier=HASH(0x78f7a20)') called at /opt/perl/lib/site_perl/5.10.1/Mail/DKIM/MessageParser.pm line 118
        Mail::DKIM::MessageParser::CLOSE('Mail::DKIM::Verifier=HASH(0x78f7a20)') called at /XXX/sendgrid/bounced/releases/XXXXX/lib/DomainReply.pm line 443
        DomainReply::sendReply('DomainReply=HASH(0x725db50)', 'MIME::Entity=HASH(0x78ced10)', 'GLOB(0x7890558)', '"XXXX" <XXXX....', 'QXXXX', 'Re: tXXXX"\x{a}', 'http:XXXXo', 'HASH(0x7327b88)', 'HASH(0x728e7b0)', ...) called at /XXX/sendgrid/bounced/releases/XXX/lib/DomainReply.pm line 213
        DomainReply::processDomain('DomainReply=HASH(0x725db50)', 'BouncedItem=HASH(0x59524b0)') called at /XXX/sendgrid/bounced/releases/XXX/bouncedChild.pl line 216
        main::processMail('HASH(0x74475b8)', 'GLOB(0x7890558)') called at /opt/sendgrid/bounced/releases/XXX/bouncedChild.pl line 145
        main::__ANON__(0) called at /opt/perl/lib/site_perl/5.10.1/x86_64-linux-gnu-thread-multi/AnyEvent/Impl/EV.pm line 88
        eval {...} called at /opt/perl/lib/site_perl/5.10.1/x86_64-linux-gnu-thread-multi/AnyEvent/Impl/EV.pm line 88
        eval {...} called at /opt/perl/lib/site_perl/5.10.1/x86_64-linux-gnu-thread-multi/AnyEvent/Impl/EV.pm line 88
        AnyEvent::CondVar::Base::_wait('AnyEvent::CondVar=HASH(0x5952ed8)') called at /opt/perl/lib/site_perl/5.10.1/x86_64-linux-gnu-thread-multi/AnyEvent.pm line 1981
        AnyEvent::CondVar::Base::recv('AnyEvent::CondVar=HASH(0x5952ed8)') called at /XXXsendgrid/bounced/releases/XXX/bouncedChild.pl line 108)}
--xYzZY