Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    WebGUI autocomplete - possible info disclosure issue

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    15 Posts 6 Posters 4.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Supermule Banned
      last edited by

      Using 1.2.3 and its encrypted.

      1 Reply Last reply Reply Quote 0
      • D
        dhatz
        last edited by

        @Supermule:

        Using 1.2.3 and its encrypted.

        Just in case I wasn't clear enough, I'm not referring to login info stored in the <user>…</user> section, where passwords are indeed encrypted, but that pfsense login credentials may be inadvertently stored in an unrelated field of config.xml, due to the browser silently autocompleting them in some POST form in the webGUI (see the example I provided above).

        1 Reply Last reply Reply Quote 0
        • G
          gerdesj
          last edited by

          @dhatz:

          @Supermule:

          Using 1.2.3 and its encrypted.

          Just in case I wasn't clear enough, I'm not referring to login info stored in the <user>…</user> section, where passwords are indeed encrypted, but that pfsense login credentials may be inadvertently stored in an unrelated field of config.xml, due to the browser silently autocompleting them in some POST form in the webGUI (see the example I provided above).

          Also System -> Advanced -> Notifications IP Address (!!!) and Password.  I'm using Chrome.

          Cheers
          Jon

          1 Reply Last reply Reply Quote 0
          • R
            ryates
            last edited by

            Interfaces - WAN - PPP (and probably all the others with user and password).

            Nearly caught me when about to post my mpd_wan.conf….

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              I checked in what ended up being a really easy/clean fix.

              https://github.com/bsdperimeter/pfsense/commit/fec04267ea5303333839a45149e3cc2edc8250ff

              For any page that isn't the login form, all inputs will have autocomplete disabled.

              Seems reasonable to me…

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • D
                dhatz
                last edited by

                Seems a reasonable solution.

                A quick search reveals that there are over 40 references to autocomplete in files in /etc/inc/ and /usr/local/www

                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  Many of those are in javascript libraries and have nothing to do with our code.
                  And don't count the ones that are manually set to autocomplete=off (they're already disabled)

                  All that's left is the autocomplete checkbox that controls whether the login form itself allows autocomplete.

                  So nothing else needs adjusted really, and it's safe to leave the ones that are explicitly set off, off. The code I added (though I fixed the filename) will catch the stragglers/everything else.

                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

                  1 Reply Last reply Reply Quote 0
                  • D
                    dhatz
                    last edited by

                    Just happened to notice that the recently commited fix for the autocomplete issue doesn't seem to work under Firefox 3.6.x (3.6.28), which silently autocompletes the form.

                    1 Reply Last reply Reply Quote 0
                    • C
                      cmb
                      last edited by

                      @dhatz:

                      Just happened to notice that the recently commited fix for the autocomplete issue doesn't seem to work under Firefox 3.6.x (3.6.28), which silently autocompletes the form.

                      Considering you're 10 versions outdated there (Firefox v13.x is current), that doesn't surprise me.

                      1 Reply Last reply Reply Quote 0
                      • D
                        dhatz
                        last edited by

                        OK, but Firefox 3.6.28 was released just 2 months ago, check http://en.wikipedia.org/wiki/Firefox_3.6

                        I happened to have it around because I'm using some FF add-ons that don't work in newer versions yet.

                        1 Reply Last reply Reply Quote 0
                        • C
                          cmb
                          last edited by

                          We can't fix Firefox. May be one of your extensions, or it may just not support that.

                          1 Reply Last reply Reply Quote 0
                          • D
                            dhatz
                            last edited by

                            Doing some checking, it seems that changing line #22 of usr/local/www/fend.inc

                            from
                            $("input").prop("autocomplete","off");

                            to
                            $("input").attr("autocomplete","off");

                            makes it work under FF 3.6.28…

                            1 Reply Last reply Reply Quote 0
                            • jimpJ
                              jimp Rebel Alliance Developer Netgate
                              last edited by

                              I was using attr before, but someone said with the new version of jQuery, prop was the more correct thing to use.

                              attr worked fine for me initially.

                              Sure you've cleared your cache and everything? Perhaps your browser cached an older version of jQuery from the firewall.

                              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                              Need help fast? Netgate Global Support!

                              Do not Chat/PM for help!

                              1 Reply Last reply Reply Quote 0
                              • D
                                dhatz
                                last edited by

                                @jimp:

                                Sure you've cleared your cache and everything? Perhaps your browser cached an older version of jQuery from the firewall.

                                Just verified the reported behavior using ctrl-shift-R (reload overriding cache), autocomplete=off using attr works whereas prop doesn't. Your original commit worked fine when I tried it several days ago, which is why I was puzzled to notice the same issue today.

                                It's a minor issue, but it shows attention to detail …

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post
                                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.