Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.6.x SMTP security: prevent command injection via To/From addresses #1098

Closed
wants to merge 1 commit into from

Commits on May 9, 2017

  1. SMTP security: prevent command injection via To/From addresses

    Validate addresses passed as SMTP command arguments to prevent
    injection of other SMTP commands. Disallow line breaks and very
    long addresses which may cause overflows on some old SMTP servers.
    
    Ruby 2.4 Net::SMTP already disallows addresses that contain newlines.
    Enforce this validation in Mail to cover older Ruby versions and
    other SMTP implementations that don't validate input.
    
    SMTP injection whitepaper: http://www.mbsd.jp/Whitepaper/smtpi.pdf
    Ruby security report: https://hackerone.com/reports/137631
    OSVDB entry: https://rubysec.com/advisories/mail-OSVDB-131677
    jeremy committed May 9, 2017
    Configuration menu
    Copy the full SHA
    c3c7528 View commit details
    Browse the repository at this point in the history