Sounds like the probable cause, you may find the plastic clips in the ends of the pipes have become brittle and cracked/snapped too so may need to replace the plastic fuel pipe ( around £35 ish each there are 3) I have changed 2 of mine.
Changing o rings is ok ( about fiddly in places - round the left side of the engine under the high pressure fuel pump).
Just take your time and be careful ( don't be tempted to prize the black plastic male connectors out with a screwdriver as the plastic is brittle and is likely to crack meaning the need for a full new pipe), just take your time and wiggle them out by hand.
Once the male parts are out changing the 0 ringis very easy.
The two pipes going into the bottom of the High pressure pump are the worst ( tight space) you will need a small ratchet with ideally a female Torqx socket ( can't remember what size but you can use a standard hex socket 8mm or 10mm ish) there is 1bolt holding a clamping plate which pushes the 2 pipe connections into the HP pump ( front left of the engine just behind the aux belt). Once the metal plate is off just pull the pipes out ( careful as everything may be brittle and crack ), change the o rings and put it all back. All the other ends should be clip on male ends (with little white or yellow clip openers ( different types push in to release the clip and others are pull out to release- just take your time and work out if it's a push in or pull out type) as I say these clips get brittle and may break, but straight forward ( the one into my fuel filter was broken and needed replacing as it was letting air in).
Changing the pipes if you need to is easy.
Tip if you need to replace the pipes going under the HP fuel pump near the aux belt get some spare pipe retaining clips that hold the pipe to the front of the engine as they break when you take the old pipe off.
See this thread for some more info
http://mbworld.org/forums/m-class-w163/565417-ml270-diesel-unidentified-t-bleed-contraption.html
And
http://www.mbclub.co.uk/forums/engine/185374-w163-ml270-thermostat-replacement-broken-fuel-line.html
This subject comes up a lot and is very common in the 270cdi so do some searching and I'm sure more tips will be found.
Hope this helps.
Good luck
Moz