Auteur Topic: DSM 6 en CVE-2015-7547  (gelezen 2886 keer)

Offline Pippin

  • MVP
  • *
  • Bedankjes
  • -Gegeven: 103
  • -Ontvangen: 529
  • Berichten: 2.724
  • a.k.a. MMD
DSM 6 en CVE-2015-7547
« Gepost op: 28 maart 2016, 13:05:44 »
Zou iemand even willen kijken of
iptables -Ldeze twee regels laat zien:
DROP       tcp  --  anywhere             anywhere             tcp spt:domain length 2048:65535
DROP       udp  --  anywhere             anywhere             udp spt:domain length 2048:65535

B.v.d.
DS414
OpenVPN #1: Beter beveiligen OpenVPN #2: Beter beveiligen als client

I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

Offline Birdy

  • Global Moderator
  • MVP
  • *
  • Bedankjes
  • -Gegeven: 1422
  • -Ontvangen: 8159
  • Berichten: 44.606
    • Truebase
Re: DSM 6 en CVE-2015-7547
« Reactie #1 Gepost op: 28 maart 2016, 13:24:01 »
Met PuTTY op DSM 6.0:

root@DS111:~# iptables -L
iptables v1.6.0: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
root@DS111:~#

 :S :?:


CS406      DSM 2.0-0731    DS508      DSM 4.0-2265      DS411+II  DSM 6.2.4-25556-8   DS115J    DSM 7.1.1-42962-7   DS918+    DSM 6.2.4-25556-8
DS107+     DSM 3.1-1639    DS411slim  DSM 6.2.4-25556   DS213J    DSM 6.2.4-25556-7   DS1515+   DSM 6.2.4-25556-8   DS220+    DSM 7.2.2-72806-3
DS107+     DSM 3.1-1639    DS111      DSM 5.2-5967-9    DS413J    DSM 6.2.3-25426-2   DS716+II  DSM 7.2.2-72806-3   RT2600ac  SRM 1.3.1-9346-13
BeeDrive   1TB             BeeStation BSM 1.2-65586                                                                 MR2200ac  SRM 1.3.1-9346-13

Offline Hutje

  • MVP
  • *
  • Bedankjes
  • -Gegeven: 202
  • -Ontvangen: 221
  • Berichten: 1.811
Re: DSM 6 en CVE-2015-7547
« Reactie #2 Gepost op: 28 maart 2016, 13:31:33 »
met WinSCP op DSM 5.2 :

/$ iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
DEFAULT_INPUT  all  --  anywhere             anywhere           

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
DEFAULT_FORWARD  all  --  anywhere             anywhere           

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

Chain DEFAULT_FORWARD (1 references)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere             Source countries: BE,DE,GB,NL,SE
ACCEPT     all  --  anywhere             anywhere             source IP range 192.168.1.1-192.168.1.254
DROP       all  --  anywhere             anywhere           

Chain DEFAULT_INPUT (1 references)
target     prot opt source               destination         
DROP       tcp  --  anywhere             anywhere             tcp spt:domain length 2048:65535
DROP       udp  --  anywhere             anywhere             udp spt:domain length 2048:65535

ACCEPT     all  --  anywhere             anywhere           
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere             Source countries: BE,DE,GB,NL,SE
ACCEPT     all  --  anywhere             anywhere             source IP range 192.168.1.1-192.168.1.254
DROP       all  --  anywhere             anywhere           


DS1515+  [3x 8TB + 1x 4TB + 1x 3TB]  8 GB DDR3 DSM 6.1.7-15284 Update 3
DS1512+  [3x 4TB + 2x 2TB]  4 GB DDR3 DSM 6.1.7-15284 Update 3
DS411j     [3 x 2TB SHR] DSM 6.1.7-15284 Update 3
DS211j     [TEST-NAS] DSM 6.1-15101
RT1900    [AP-mode] SRM 1.2-7742
UPS          APC Back-UPS ES 700G

Offline Briolet

  • Global Moderator
  • MVP
  • *
  • Bedankjes
  • -Gegeven: 181
  • -Ontvangen: 2707
  • Berichten: 16.737
Re: DSM 6 en CVE-2015-7547
« Reactie #3 Gepost op: 28 maart 2016, 13:36:13 »
Ik zie ze niet onder dsm 6.0:

root@GedeeldeData:~# iptables -L
Chain INPUT (policy ACCEPT)

Chain FORWARD_FIREWALL (1 references)
RETURN     udp  --  anywhere             anywhere             Source countries: BE,NL  udp spt:19997

Chain INPUT_FIREWALL (1 references)
RETURN     udp  --  anywhere             anywhere             Source countries: BE,NL  udp spt:19997

Ik heb gewoon een search op 'spt' gedaan in de lange listing en vond dan alleen bovenste twee regels
  • Mijn Synology: DS415+
  • HDD's: 3x 3TB in SHR
  • Extra's: DS212J, RT1900ac

Offline Pippin

  • MVP
  • *
  • Bedankjes
  • -Gegeven: 103
  • -Ontvangen: 529
  • Berichten: 2.724
  • a.k.a. MMD
Re: DSM 6 en CVE-2015-7547
« Reactie #4 Gepost op: 28 maart 2016, 13:36:54 »
@Hutje
Op 5.2 is deze bug nog steeds niet gefixt, dat wist ik al.
Hetzelfde geldt voor de router.

@Birdy
Ok, "iptables" is er niet meer in DSM 6
Dan is dat nu waarschijnlijk "ip" of "ipset", probeer deze eens a.u.b.
ip rule show
DS414
OpenVPN #1: Beter beveiligen OpenVPN #2: Beter beveiligen als client

I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

Offline Pippin

  • MVP
  • *
  • Bedankjes
  • -Gegeven: 103
  • -Ontvangen: 529
  • Berichten: 2.724
  • a.k.a. MMD
Re: DSM 6 en CVE-2015-7547
« Reactie #5 Gepost op: 28 maart 2016, 13:38:09 »

@Briolet
Heb je een upgrade gedaan of een schone install?
DS414
OpenVPN #1: Beter beveiligen OpenVPN #2: Beter beveiligen als client

I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

Offline Briolet

  • Global Moderator
  • MVP
  • *
  • Bedankjes
  • -Gegeven: 181
  • -Ontvangen: 2707
  • Berichten: 16.737
Re: DSM 6 en CVE-2015-7547
« Reactie #6 Gepost op: 28 maart 2016, 13:41:19 »
Bij mij was het een upgrade op beide nassen. Op beide nassen zie ik de iptables.

Birdy had al eens aangegeven dat hij een schone installatie gedaan had.
  • Mijn Synology: DS415+
  • HDD's: 3x 3TB in SHR
  • Extra's: DS212J, RT1900ac

Offline Pippin

  • MVP
  • *
  • Bedankjes
  • -Gegeven: 103
  • -Ontvangen: 529
  • Berichten: 2.724
  • a.k.a. MMD
Re: DSM 6 en CVE-2015-7547
« Reactie #7 Gepost op: 28 maart 2016, 13:44:53 »

Dank, dan heeft @Birdy  waarschijnlijk een schone install gedaan.

Edit:
Zie nu je edit (:
DS414
OpenVPN #1: Beter beveiligen OpenVPN #2: Beter beveiligen als client

I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

Offline Pippin

  • MVP
  • *
  • Bedankjes
  • -Gegeven: 103
  • -Ontvangen: 529
  • Berichten: 2.724
  • a.k.a. MMD
Re: DSM 6 en CVE-2015-7547
« Reactie #8 Gepost op: 28 maart 2016, 13:52:24 »

Hm...

ip rule show laat niet zien wat ik verwachte, eerst even verder zoeken.
DS414
OpenVPN #1: Beter beveiligen OpenVPN #2: Beter beveiligen als client

I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

Offline Hutje

  • MVP
  • *
  • Bedankjes
  • -Gegeven: 202
  • -Ontvangen: 221
  • Berichten: 1.811
Re: DSM 6 en CVE-2015-7547
« Reactie #9 Gepost op: 28 maart 2016, 14:01:09 »
@MMD : sorry, ik zie nu pas dat het om DSM 6.0 gaat.
Inderdaad géén iptables.


DS1515+  [3x 8TB + 1x 4TB + 1x 3TB]  8 GB DDR3 DSM 6.1.7-15284 Update 3
DS1512+  [3x 4TB + 2x 2TB]  4 GB DDR3 DSM 6.1.7-15284 Update 3
DS411j     [3 x 2TB SHR] DSM 6.1.7-15284 Update 3
DS211j     [TEST-NAS] DSM 6.1-15101
RT1900    [AP-mode] SRM 1.2-7742
UPS          APC Back-UPS ES 700G

Offline Birdy

  • Global Moderator
  • MVP
  • *
  • Bedankjes
  • -Gegeven: 1422
  • -Ontvangen: 8159
  • Berichten: 44.606
    • Truebase
Re: DSM 6 en CVE-2015-7547
« Reactie #10 Gepost op: 28 maart 2016, 14:27:18 »
@Birdy
Ok, "iptables" is er niet meer in DSM 6
Dan is dat nu waarschijnlijk "ip" of "ipset", probeer deze eens a.u.b.
ip rule show

admin@DS111:/$ ip rule show
0:      from all lookup local
2:      from all lookup static-table
3:      from 192.168.1.22 lookup eth0-table
32766:  from all lookup main
32767:  from all lookup default
admin@DS111:/$

ipset wordt niet gevonden in DSM.

En ja, DSM 6.0 is een schone installatie (terug naar fabrieksinstellingen)  ;)


CS406      DSM 2.0-0731    DS508      DSM 4.0-2265      DS411+II  DSM 6.2.4-25556-8   DS115J    DSM 7.1.1-42962-7   DS918+    DSM 6.2.4-25556-8
DS107+     DSM 3.1-1639    DS411slim  DSM 6.2.4-25556   DS213J    DSM 6.2.4-25556-7   DS1515+   DSM 6.2.4-25556-8   DS220+    DSM 7.2.2-72806-3
DS107+     DSM 3.1-1639    DS111      DSM 5.2-5967-9    DS413J    DSM 6.2.3-25426-2   DS716+II  DSM 7.2.2-72806-3   RT2600ac  SRM 1.3.1-9346-13
BeeDrive   1TB             BeeStation BSM 1.2-65586                                                                 MR2200ac  SRM 1.3.1-9346-13

Offline Pippin

  • MVP
  • *
  • Bedankjes
  • -Gegeven: 103
  • -Ontvangen: 529
  • Berichten: 2.724
  • a.k.a. MMD
Re: DSM 6 en CVE-2015-7547
« Reactie #11 Gepost op: 28 maart 2016, 14:30:08 »

Ok, dank.

Afgaande op @Briolet `s bericht zou het dan in DSM 6 wel gepatcht zijn.
DS414
OpenVPN #1: Beter beveiligen OpenVPN #2: Beter beveiligen als client

I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

Offline Hutje

  • MVP
  • *
  • Bedankjes
  • -Gegeven: 202
  • -Ontvangen: 221
  • Berichten: 1.811
Re: DSM 6 en CVE-2015-7547
« Reactie #12 Gepost op: 28 maart 2016, 15:08:30 »
Maar op een 'geupgrade' DSM 6.0 :

admin@DS411j:/volume1$ iptables -h
iptables v1.6.0

Usage: iptables -[ACD] chain rule-specification [options]
       iptables -I chain [rulenum] rule-specification [options]
       iptables -R chain rulenum rule-specification [options]
       iptables -D chain rulenum [options]
       iptables -[LS] [chain [rulenum]] [options]
       iptables -[FZ] [chain] [options]
       iptables -[NX] chain
       iptables -E old-chain-name new-chain-name
       iptables -P chain target [options]
       iptables -h (print this help information)

Commands:
Either long or short options are allowed.
  --append  -A chain            Append to chain
  --check   -C chain            Check for the existence of a rule
  --delete  -D chain            Delete matching rule from chain
  --delete  -D chain rulenum
                                Delete rule rulenum (1 = first) from chain
  --insert  -I chain [rulenum]
                                Insert in chain as rulenum (default 1=first)
  --replace -R chain rulenum
                                Replace rule rulenum (1 = first) in chain
  --list    -L [chain [rulenum]]
                                List the rules in a chain or all chains
  --list-rules -S [chain [rulenum]]
                                Print the rules in a chain or all chains
  --flush   -F [chain]          Delete all rules in  chain or all chains
  --zero    -Z [chain [rulenum]]
                                Zero counters in chain or all chains
  --new     -N chain            Create a new user-defined chain
  --delete-chain
            -X [chain]          Delete a user-defined chain
  --policy  -P chain target
                                Change policy on chain to target
  --rename-chain
            -E old-chain new-chain
                                Change chain name, (moving any references)
Options:
    --ipv4      -4              Nothing (line is ignored by ip6tables-restore)
    --ipv6      -6              Error (line is ignored by iptables-restore)
[!] --protocol  -p proto        protocol: by number or name, eg. `tcp'
[!] --source    -s address[/mask][...]
                                source specification
[!] --destination -d address[/mask][...]
                                destination specification
[!] --in-interface -i input name[+]
                                network interface name ([+] for wildcard)
 --jump -j target
                                target for rule (may load target extension)
  --goto      -g chain
                              jump to chain with no return
  --match       -m match
                                extended match (may load extension)
  --numeric     -n              numeric output of addresses and ports
[!] --out-interface -o output name[+]
                                network interface name ([+] for wildcard)
  --table       -t table        table to manipulate (default: `filter')
  --verbose     -v              verbose mode
  --wait        -w [seconds]    wait for the xtables lock
  --line-numbers                print line numbers when listing
  --exact       -x              expand numbers (display exact values)
[!] --fragment  -f              match second or further fragments only
  --modprobe=<command>          try to insert modules using this command
  --set-counters PKTS BYTES     set the counter during insert/append
[!] --version   -V              print package version.
admin@DS411j:/volume1$

[Mod edit: lange listing in code gezet]

DS1515+  [3x 8TB + 1x 4TB + 1x 3TB]  8 GB DDR3 DSM 6.1.7-15284 Update 3
DS1512+  [3x 4TB + 2x 2TB]  4 GB DDR3 DSM 6.1.7-15284 Update 3
DS411j     [3 x 2TB SHR] DSM 6.1.7-15284 Update 3
DS211j     [TEST-NAS] DSM 6.1-15101
RT1900    [AP-mode] SRM 1.2-7742
UPS          APC Back-UPS ES 700G


 

Synology 2015 Event

Gestart door Synology Official TeamBoard Synology Awards & Reviews (NL)

Reacties: 101
Gelezen: 56155
Laatste bericht 04 februari 2015, 21:57:26
door Birdy
Samba CVE-2015-0240

Gestart door PippinBoard Synology DSM algemeen

Reacties: 2
Gelezen: 1586
Laatste bericht 25 februari 2015, 12:45:54
door Hofstede
2015

Gestart door NazgulBoard The lounge

Reacties: 6
Gelezen: 2288
Laatste bericht 01 januari 2015, 17:54:44
door Hofstede
kijk tip! - ROGER WATERS - THE WALL MOVIE WORLD PREMIER (29 september 2015)

Gestart door m4v3r1ckBoard The lounge

Reacties: 0
Gelezen: 1768
Laatste bericht 12 juli 2015, 12:00:44
door m4v3r1ck
Synology 2015 conference

Gestart door BrainyBoard The lounge

Reacties: 3
Gelezen: 1724
Laatste bericht 21 augustus 2014, 15:13:33
door Birdy