Cristian Ciocau created JSPF-100:
------------------------------------

             Summary: SPFSession threats IPv4 mapped as IPv6
                 Key: JSPF-100
                 URL: https://issues.apache.org/jira/browse/JSPF-100
             Project: James jSPF
          Issue Type: Bug
    Affects Versions: 0.9.9
            Reporter: Cristian Ciocau
            Priority: Blocker


Steps to reproduce:

{code}
public static void main(String[] args) {
    SPFSession spfSession = new SPFSession("", "", "::ffff:192.168.1.1");

    System.out.println(spfSession.getInAddress());
}
{code}

The problem is in SPFSession:
{code}
this.ipAddress = IPAddr.getProperIpAddress(clientIP.trim());
// get the in Address
this.inAddress = IPAddr.getInAddress(clientIP);
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to