Five-times World Cup winners Brazil scored an injury-time winner to grab a 2-1 win over Bosnia in an exhibition match in St. Gallen, Switzerland, on Tuesday.

The seleção got going early, and looked like they might run away with things, with Marcelo giving them the lead after only four minutes.

The Real Madrid star, on a typical surge forward from left back arrived perfectly onto Hernanes' nicely-weighted pass to finish powerfuly, low into the bottom-right corner of the net.

Bosnia, who narrowly missed out on qualification for Euro 2012 after a playoff defeat to Portugal, were gifted a way back into the contest, though, thanks to a poor error from Brazil goalkeeper Julio Cesar.

Bosnian's Stuttgart striker Vedad Ibisevic hit a fairly tame shot from just outside the area but the Inter keeper dived too far and the ball ricocheted in off his legs. While some will argue that the ball traveling through the legs of Brazil defender David Luiz's legs disrupted the keeper, there really is no excuse for such a basic error.

Brazil looked certain to reassert their advantage only a few minutes later as Hernanes bore down on a seemingly empty net. But, miraculously, Bosnia captain Emir Spahi was able to block Hernanes' effort following striker Leandro Damiao's shot that was parried by Bosnian keeper Asmir Begovic.

But, only minutes away from securing what would have been an impressive result for the young nation, Bosnia returned Brazil's earlier favor by presenting Brazil with the winner in injury time. Hulk, on as a substitute, swept a dangerous low cross right along the six-yard-box that in truth could have gone in off anyone, but struck Bosnia defender Sasa Papac and cannoned into the back of the Bosnian net.

Despite the victory, Brazil's performance is unlikely to ease the pressure on coach Mano Menezes. The former Corinthians boss has been under pressure since Brazil's poor showing in last summer's Copa America.