JOHANNESBURG (AFP) - Barcelona defender Daniel Alves spared Brazil's blushes as his late goal earned the five time world champions a 1-0 win over spirited South Africa here Thursday to book their place in the Confederations Cup final.
This semi-final against the hosts was heading for extra time until Alves, in an inspired move by coach Dunga, replaced Andre Santos and broke the stalemate with a curling free kick in the 88th minute.
Explaining his master move Dunga said: "We knew it was going to be difficult, we knew South Africa were going to attack, to defend and counter attack.
"The game was very tight so I sent on an aggressive player (Alves) who is very quick and a specialist in set pieces, he practices set pieces every day.
"We had to make use of any opportunity that came our way so a foul in fornt of goal was perfect for us."
Brazil now face the United States in Sunday's final with South Africa heading to Rustenburg for the third place play-off with Spain.
"I think we played very well against a team recognised as one of the best in world and even surprised Brazil. I'm very proud," said Brazil-born South Africa coach Joel Santana.
"It seemed as though it would be 0-0 but then Brazil had the set piece relying on its experience placing three players in our wall to make it difficult for our keeper.
"We showed we were able to hold our own. Now we have another year to prepare for the World Cup."
South Africa were without suspended midfielder Macbeth Sibaya, his place taken by Siphiwe Tshabalala, while Brazil midfielder Luisao started for injured Juan.
The two adversaries made it into the last four in wildly contrasting ways - Brazil sauntering through as Group B leaders with maximum points, South Africa edging through on goal difference as Group A runners-up.
With President Jacob Zuma watching, about the only one of the 48,000 fans not blowing into a vuvuzela, South Africa made a promising start as they fought to make their first final since the 1996 African Nations Cup.
Against the run of play Itumelang Khune was forced into action to save a Ramires effort while shortly after his counterpart Julio Cesar was in full flight to cover a long range effort from speedy defender Siboniso Gaxa.
South Africa were giving as good as they got as Brazil tried to work the ball repeatedly down the left flank using Inter Milan back Maicon as the key link.
On 21 minutes they should have scored only for Tshabalala's header off a freekick to go high.
As the half hour beckoned the Kaizer Chiefs midfielder unleashed a carefully constructed 30 metre freekick with only Cesar's palm preventing the hosts taking the lead.
Down at the other end Khune safely held onto Andre Santos' volley.
Kaka produced his first bit of magic as he darted through the South African defence but the Real Madrid forward's curving shot drifted wide of the far post.
Brazil were fortunate not to go into the break trailing as Steven Pienaar had Cesar beaten with his stinging 35 metre shot from the right but the status quo was upheld when the ball edged wide.
The holders were not at their brilliant best against a South African side that were scampering after every ball as if their lives depended on it.
On the hour, with Dunga looking on pensively, Teko Modise's close range shot deflected off Luisao before hitting the beaten Cesar's right post in a period of domination from Joel Santana's side.
With eight minutes left and as extra time loomed Dunga introduced Alves into the fray and the Barcelona defender repaid the confidence when he beat the Bafana Bafana wall with a thundering freekick two minutes from time.
for André Santos 82'
for Luís Fabiano 90'
|Aguero plans to honour City contract|
|Mourinho return excites Ba|
|Polish Ekstraklasa: Widzew Lodz 1 Legia Warsaw 1|
|Oezil keen to stay at Real|
|De Rossi pleads for peaceful final|
|Chelsea, Galatasaray vie for Turan|
|Ballack predicts a Bayern victory|
|Santos accept Neymar bids|
|Atletico plot Negredo swoop|
|La Liga Preview: Espanyol v Barcelona|
|Valbuena: My best season so far|
|Blackburn give Bowyer permanent role|
|Dortmund can get better, insists Klopp|
|Fernandes: No Caterham exit plans|
|Inter appoint Mazzarri, sack Stramaccioni|
|Benitez in Napoli link|
|Adams signs new Ross County deal|
|Heynckes: Bayern are extraordinary|
|Platini: European sports police needed|
|Taylor calls on Coloccini to stay|
|Verratti is going nowhere, says agent|
|Neymar set to leave Santos ´within 10 days´|
|Gill expects Rooney stay|
|Departing Cole thanks West Ham fans|
|Shechter grateful for Swansea support|
|Townsend charged over betting rules|
|Reading release six players|
|Monaco splash out for Moutinho, Rodriguez|
|Rummenigge: Bayern not complacent|
|Giroud seeks improvement|
|Palermo chief welcomes bids for Ilicic|
|AZ bolster defensive stocks|
|Lambert: Benteke needs to stay at Villa|
|Andreolli poised for Inter return|
|Bianchi: Boca players tired|
|Cech: Mourinho a great manager|
|Blatter outlines racism resolution aim|
|Manchester City players coy on Pellegrini|
|Marseille priced out of Damiao move|
|McAuley: West Brom could have done more|
|Osman extends Everton stay|
|Stoke reject N´Zonzi transfer request|
|Carragher retirement ´sad´, says Mourinho|
|Manolev happy to help|
|Europa league winners to get Champions League spot|
|First goal bittersweet for Azpilicueta|
|La Liga Preview: Real Sociedad v Real Madrid|
|La Liga Preview: Pressure on for Euro spots|
|Ligue 1 Preview: Victory only hope for Troyes|
|MLS preview: Second place up for grabs|
|Coentrao heading for Real exit|
|Coppa Italia Preview: Roma v Lazio|
|Ligue 1 Preview: Lorient v PSG|
|Malaga win was catalyst, says Klopp|
|Milan finalise Zapata switch|
|Montella braced for Jovetic departure|
|Simeone will not block Falcao exit|
|Van Gaal talks down Netherlands´ chances|
|Coupet doubts Monaco´s potential|
|Man City edge Chelsea in thrilling friendly|
|Torres wants Mourinho at Chelsea|
|Copa Libertadores Wrap: Atletico Mineiro snatch late draw|
|Galliani dismisses Berlusconi row reports|
|San Lorenzo renew Coloccini pursuit|
|Benteke sparks fears of Villa exit|
|Weidenfeller: We can be heroes|
|Injured Messi called up by Argentina|
|Cleverley taking inspiration from Spain|
|Kellermann proud of resilient Wolfsburg|
|Robben hails dominant Germany|
|Europe the benchmark for Zaccheroni´s Japan|
|Osieck backs Schwarzer to shine|
|Van der Gun shoots Utrecht to away win|
|Firmino double fires Hoffenheim to win|
|Davies hails ´great´ debut season|
|Foster happy with eighth-placed finish|
|Wickham eyeing first team|
|UEFA to announce Europa League incentive|
|Fonte looking to hit the ground running|
|Hodgson keen to hand Jones defensive role|
|Onuoha: Keep the faith with QPR owners|
|Karagounis praises Fulham fans|
|McDermott: Byram keen on Leeds stay|
|Martinez´s Wigan future to be decided next week|
|Rodriguez: I think I will leave Porto|
|Erbes ´relaxed´ ahead of Newell´s clash|
|CSL Preview: Shandong Luneng eye top spot|
|Kwakman to leave Groningen|
|Werder Bremen complete Petersen signing|
|Mancini Inter return is possible, says Moratti|
|Baines: Everton must progress without Moyes|
|Nicollin: Cabella worth 100 million euros|
|Demel proud of West Ham´s home record|
|Debuchy: Premier League is difficult|
|Pazzini to miss start of next season|
|Ferdinand extends Manchester United deal|
|Pulis thanks fans after Stoke departure|
|Berlin to host 2015 UEFA Champions League final|
|Werder face Dutt wait|
|Finke appointed Cameroon boss|
|Wilshere keen to improve after comeback season|
|Vieira excited by MLS franchise|
|Rodgers wants quick decision on Carroll future|
|Kagawa wants European success|
|Mata hopes for Mourinho arrival|
|Welbeck disappointed with goals tally|
|UEFA Champions League Preview: Borussia Dortmund v Bayern Munich|
|Zabaleta excited by Pellegrini|
|Ramos: Bale is ´Real Madrid-quality´|
|Hart urges City to go forward|
|Copa Libertadores Wrap: Santa Fe earn away win|
|Fiorentina reject Jovetic rumours|
|Piszczek set for post-season surgery|
|Adriano signs Barca extension|
|International Friendly: Venezuela 2 El Salvador 1|
|Bundesliga chief slams Qatar World Cup scheduling|
|Gignac wants Barton to stay|
|Ramsey, Walcott hail Wenger´s achievements|
|Loew regrets timing of German finale|