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

XSS and open redirect on login form, CVE-2018-1000671 #268

Closed
hmpf opened this issue Apr 16, 2018 · 11 comments
Closed

XSS and open redirect on login form, CVE-2018-1000671 #268

hmpf opened this issue Apr 16, 2018 · 11 comments

Comments

@hmpf
Copy link

hmpf commented Apr 16, 2018

The following link redirects to bing:

https://listes.renater.fr/sympa?referer=https://www.bing.com&passwd=&previous_action=&action=login&action_login=&previous_list=&list=&email=

It also works in 6.2.16. We have no newer sympa to test with.

It seems to me maybe this is a bug in a perl dependency? I couldn't find "referer" directly in sympa's source code during a (very) cursory grep.

@ikedas
Copy link
Member

ikedas commented Apr 30, 2018

Hi @hmpf,

It is a feature. But I agree it may be used to confuse users. I think this feature woould be better to be removed in the future.

@lightsey
Copy link

@lightsey
Copy link

I submitted this to the DWF for CVE assignment since the issue is publicly visible.

@lightsey
Copy link

lightsey commented Sep 4, 2018

This issue was assigned CVE-2018-1000671

@ikedas
Copy link
Member

ikedas commented Sep 6, 2018

Hi @lightsey,

Could you please forward assignment information (JSON data) to <sympa-security@listes.renater.fr>? Information have never been publicly disclosed and security team might want to investigate it.

@racke
Copy link
Contributor

racke commented Sep 7, 2018

Here is the corresponding Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=908165

@ikedas
Copy link
Member

ikedas commented Sep 7, 2018

Hi all,

Here is minimal fix (hopefully): c6ce32a Please check it.

  • Note that it may close XSS but won't close general open redirect initially pointed out by @hmpf so that a feature of Sympa will work. See my comment below.

@ikedas
Copy link
Member

ikedas commented Sep 7, 2018

CVE-2018-1000671 says "sympa version 6.2.16 and later" affect. However, looking archived branches, "referer" parameter has not been sanitized from the beginning. The statement should be corrected to be "all versions of Sympa".

@lightsey
Copy link

lightsey commented Sep 7, 2018

I'm not sure why NVD is showing "6.2.16 and later". The data I submitted and the DWF approved was "4.0a5 and later" which looked to me like the first version tag that contained the open redirect. I'll email Kurt and ask if he can get it corrected in the main CVE list.

@ikedas
Copy link
Member

ikedas commented Sep 8, 2018

With PR above, referer (and failure_referer) parameters will be allowed only when they are included in the scope of cookie domain (sufficient for session sharing feature) and redirection to "unauthorized" domains will be avoided.

If this may solve the problem described in the CVE, I'll merge it.

@ikedas ikedas changed the title Possible XSS XSS and open redirect on login form, CVE-2018-1000671 Sep 10, 2018
@ikedas ikedas added this to the 6.2.36 milestone Sep 10, 2018
ikedas added a commit that referenced this issue Sep 15, 2018
Issue #268: XSS and open redirect on WWSympa
@ikedas
Copy link
Member

ikedas commented Sep 15, 2018

Merged. Thanks for reporting & suggesting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants