52 Commits

Author SHA1 Message Date
Vincent Li
537587ae64 ddns.cgi: Fixes bug 13884
commit 0b946b848c72511922fa211b6a4db0da092d204c
Author: Michael Tremer <michael.tremer@ipfire.org>
Date:   Thu Sep 25 16:37:27 2025 +0200

    ddns.cgi: Escape the variables when they are being sent back to the browser

    Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>

commit 67db35c8a536b54d169336269853aaa6eae85ab5
Author: Adolf Belka <adolf.belka@ipfire.org>
Date:   Thu Sep 25 13:12:44 2025 +0200

    ddns.cgi: Fixes bug 13884

    Fixes: bug 13884 - ddns.cgi LOGIN PASSWORD SERVICE Stored Cross-Site Scripting
    Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
    Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org>
    Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
2025-10-09 17:33:25 +00:00
Stefan Schantl
1d32c50e03 ddns.cgi: Fix sanity check logic.
The input validation did not work in the proper way. It allways
reported "No password" when using a provider which supports token and
the token has been given.

This of course is wrong and leaded to unuseable providers.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-07 09:34:31 +00:00
Michael Tremer
ea9ad05e38 ddns.cgi: Use new system methods
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-10 14:30:51 +01:00
Jonatan Schlag
8186b37230 Hardcode theme to ipfire
This disables the theme support and makes it impossible to use any other
themes than the ipfire default theme.

The only intention of this patch is to hardcode the theme to ipfire.
To change any cgi we have is an ugly way, but the only way to do this
fast. The colour handling needs certainly to be improved as well, but
this will and should be done in other patches.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-04-08 10:11:34 +00:00
Stefan Schantl
0562cdb360 ddns.cgi: Make dealing with auth tokens more user-friendly.
If a provider supports authentication with a token, now
the username and password fileds will be swapped by some
Java Script code in favour of an input field for the token.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-06 15:32:53 +00:00
Stefan Schantl
00e1105b92 ddns.cgi: Drop static provider list for token based auth.
This is really hard to maintain when adding new or altering existing
providers.

Reference #12415.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-12-08 17:40:03 +00:00
Arne Fitzenreiter
5653e55107 perl-scripts: suppress smartmatch experimental warning
smartmatch was introduced with perl 5.10 and was marked
as experimental in 5.14

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-08-16 12:21:26 +02:00
Stefan Schantl
023919034a ddns.cgi: Use ddnsctrl for instant update. 2015-04-26 16:52:52 +02:00
Stefan Schantl
3b9b58f956 ddns.cgi: Drop code for proto handling. 2015-03-20 19:00:04 +01:00
Stefan Schantl
6409aa7e54 ddns.cgi: Add token handling for zzzz.io. 2015-03-12 12:57:36 +01:00
Stefan Schantl
82bd80b387 ddns.cgi: Add support for token based auth for spdns.de. 2015-01-09 19:43:37 +01:00
Stefan Schantl
4851bc81f3 ddns.cgi: Support hostname details without seperating dots.
To keep compatiblity with the settings file of the old DDNS update script
(setddns.pl) we keept the storrage of the hostname information in
two parts (hostname and domain) and connected both with a dot to get a valid
FQDN again. OpenDNS and may some other providers do not use a dotted format
for this information, so one of these two values were empty.

We now can handle such cases in a right way.
2014-08-07 21:02:10 +02:00
Michael Tremer
a6df80269b ddns.cgi: Fix CGI clearing all settings. 2014-08-07 20:58:33 +02:00
Michael Tremer
c330d115bf ddns.cgi: Fix coding style. 2014-08-07 20:40:14 +02:00
Michael Tremer
458064c519 ddns.cgi: Allow enabling/disabling entries. 2014-08-07 20:33:10 +02:00
Stefan Schantl
c2f80e67a7 ddns.cgi: Fix enable/disable handling of entries.
When the "enabled" checkbox is checked a "on" will be returned,
if the box is unchecked checkboxes will return nothing.

As a result of this behaviour the ddns.conf contained entries which have been disabled in the WUI.

We now check if the checkbox returns a "on", otherwise we will set the "enabled" value to "off" to
prevent from this problem.
2014-08-05 21:24:44 +02:00
Stefan Schantl
1f080b34ba ddns.cgi: Check for valid FQDN before doing nslookup.
We now check if the used hostname is a valid FQDN before doing the nslookup to
determine if a DDNS host is up do date.
2014-08-04 19:37:45 +02:00
Stefan Schantl
5fe185f83c ddns.cgi: Fix token auth for provider regfish.com.
In the past the regfish.com auth token was stored as username similar than freedns.afraid.com. We now expected
the token key stored as password, to keep compatiblity with old installations I've added some compatible code
to prevent users from various issues.
2014-08-04 12:53:59 +02:00
Michael Tremer
960e969ca1 Merge remote-tracking branch 'stevee/ddns-new-providers' 2014-07-14 14:12:31 +02:00
Stefan Schantl
4fb763ff6e ddns.cgi: Add handling for entrydns and opendns. 2014-07-14 14:09:23 +02:00
Arne Fitzenreiter
e351c1e090 ddns: don't use forced update. 2014-07-13 13:07:00 +02:00
Arne Fitzenreiter
e611222f41 ddns.cgi: fix convert at update. 2014-07-13 12:46:41 +02:00
Michael Tremer
06fb88bc1d ddns.cgi: Remove an other unknown function call. 2014-07-10 20:39:56 +02:00
Michael Tremer
9a33b04f13 ddns.cgi: Hide listing if no entries exist.
Also remove call of unknown function.
2014-07-10 20:26:02 +02:00
Michael Tremer
c61ac6e80e ddns.cgi: Move enabled checkbox a bit up. 2014-07-10 20:03:21 +02:00
Michael Tremer
4576afc5d8 ddns.cgi: Fix superfluous colon. 2014-07-10 20:01:06 +02:00
Michael Tremer
aacc471092 ddns.cgi: Fix syntax error. 2014-07-10 19:58:44 +02:00
Stefan Schantl
f5770b46e4 ddns.cgi: Add required code for generating valid nsupdate.info config section. 2014-07-09 21:14:49 +02:00
Michael Tremer
cd56eb6db1 ddns.cgi: Add hook to generate ddns.conf from CLI. 2014-07-08 16:10:46 +02:00
Michael Tremer
3c781f6375 ddns.cgi: Add support for keys with nsupdate. 2014-07-08 15:41:23 +02:00
Stefan Schantl
4188fbf1f0 ddns.cgi: Do not show the used hostname in parts. 2014-07-06 22:44:47 +02:00
Stefan Schantl
32b9c7394e ddns.cgi: Drop code for wildcard support.
It seems all ddns providers removed their support for wildcards.
2014-07-06 22:11:18 +02:00
Stefan Schantl
1f8fccc5bc ddns.cgi: Rework to use new ddns update client. 2014-07-06 21:32:01 +02:00
Bernhard Bitsch
9cf34ad1ed DDNS: Add support for spdns.de.
This commit adds support for the dynamic dns service provider spdns.de.

Fixes #10533.
2014-05-12 19:53:51 +02:00
Stefan Ernst
b1ab4a4dd0 DDNS: Add support for variomedia.de.
This commit adds support for the dynamic dns service provider variomedia.de.

Fixes #10485.
2014-05-11 20:06:20 +02:00
Stefan Schantl
02c542d173 DDNS: Add support for twodns.de.
This commit adds support for the dynamic dns service provider twodns.de.

Fixes #10418.
2014-05-11 19:58:31 +02:00
Alexander Marx
ec5a7d21f6 Layout changes ddns.cgi 2014-01-09 15:00:23 +01:00
Alexander Marx
09eb51c985 fifteen-theme: made ddns table themeable 2014-01-07 09:53:46 +01:00
Michael Tremer
afe4656c72 DDNS: Sort providers alphabetically. 2013-10-15 11:50:48 +02:00
Stefan Schantl
290c9cf89b DDNS: Add support for udmedia.de.
This commit adds support for the dynamic dns service provider udmedia.de and was requested by a user on the forum.

Details can be found here: http://forum.ipfire.org/index.php?topic=9097.0

Fixes #10432.
2013-10-14 19:07:18 +02:00
Michael Tremer
80002fe433 DDNS: Support for all-inkl.com.
Requested by Daniel Kovacs <daniel.kovacs@pleasuredome.org>.
2013-08-01 18:12:01 +02:00
Michael Tremer
5a2935b1b3 Add DDNS client for dns.lightningwirelabs.com. 2013-06-12 14:36:51 +02:00
Andrew Bellows
ff6f029536 ddns: Add support for namecheap provider. 2011-08-21 11:05:02 +02:00
Arne Fitzenreiter
38b6ec3342 Remove mydyn.de from ddns services. 2011-02-09 10:48:42 +01:00
Christian Schmidt
b411505d49 Added recent patch supplied by maverick.
This adds strato as dyddns provider and closes Bug #0000758
2011-02-08 21:38:13 +01:00
Arne Fitzenreiter
e9db0da3fb Add "mydyn.de" ddns service 2008-09-27 11:05:20 +02:00
ms
70df830214 Ein Paar Dateien fuer die GPLv3 angepasst.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@853 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-08-29 13:25:32 +00:00
maniacikarus
f2fdd0c1e9 Quasi fast alle cgis von den fixen header farben befreit
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@560 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-05-17 16:54:15 +00:00
ms
986e08d996 Hinzugefügt:
* Morningreconnect Script
Geändert:
  * Neue Spamassassin Version. 3.1.3
  * Interface umfangreich bearbeitet in Layout und angezeigten Texten.
  * DHCP-Leases-Error gefixt
  * lq-Graph pingt nun nach www.heise.de
  * IP-Anzeige für PPPoE/DSL gefixt.
  * Connectionstate vom IPCop übernommen.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@164 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2006-06-06 19:12:22 +00:00
ms
78331e3019 Großes Update:
Hinzugefügt:
  * L7-Protokolle
Geändert:
  * XAMPP 1.5.1 --> 1.5.3
  * Sämtliche "IPCops" durch "IPFire" im Webinterface ersetzt
  * Einige Fixes, wegen Errors im Webinterface. (Im Forum zu finden.)


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@148 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2006-05-31 10:09:27 +00:00