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'
|BREAKING NEWS: Samaras signs two-year deal at Albion|
|We cannot be complacent - Marcelino|
|Redknapp: Mackay should get second chance|
|LMA apologise for initial Mackay statement|
|Neymar a doubt for Elche clash|
|Alves confident of Enrique evolution|
|Ferdinand dreaming of England job|
|European and EPL clubs circling for Jets|
|Millen ready to lead Palace recruitment|
|Wenger: Wilshere should ignore critics|
|CONCACAF Champions League Review: Herediano start strongly|
|Lambert excited by ´big asset´ Cole|
|Copa Sudamericana Review: Barcelona, Deportivo Capiata in the box seat|
|Brazilian Serie A Review: Luciano inspires Corinthians, Cruzeiro extend lead|
|Blanc: Di Maria transfer difficult|
|Klopp eager to deny Leverkusen|
|Blanc optimistic over Ibrahimovic fitness|
|Tiote will stay - Pardew|
|Bruce laments ´stupid´ McGregor mistake|
|UEFA Europa League Review: Tottenham in late turnaround, Astra shock Lyon|
|League Two Preview: Morecambe, Burton out to continue fast starts|
|Sassuolo 4 Cittadella 1: Second-half rally sees Sassuolo into Coppa fourth round|
|Howard to take US sabbatical|
|Lokeren 1 Hull City 0: McGregor error gifts Belgians victory|
|Rwanda given Wednesday hearing for disqualification appeal|
|Pochettino hails substitutes´ impact|
|Mackay apologises over text message scandal|
|Brandao suspended over Motta incident|
|Borussia Dortmund v Bayer Leverkusen: Klopp expecting tough start|
|QPR complete loan deal for Vargas|
|League One Preview: Fleetwood, Preston face home tests|
|Chelsea v Leicester City: Schurrle expecting Chelsea improvement|
|Southampton v West Brom: Koeman wary of Albion|
|AEL 1 Tottenham 2: Late turnaround gives visitors play-off edge|
|CAF Confederation Cup: Al Ahly, Nkana out to reach last four|
|Swansea City v Burnley: Monk expecting stern examination|
|Bender close to Leverkusen return|
|Morocco will host Club World Cup despite Ebola concerns - FIFA|
|Schneiderlin not allowed to leave, insists Koeman|
|Dyche confident Burnley can strengthen|
|West Brom eye Samaras signing|
|Aston Villa v Newcastle United: Lambert wants more Weimann goals|
|MLS Preview: Sounders look to bounce back at Portland, Johnson banned for DC|
|Klose eyes European football|
|Monk warns Swansea over complacency|
|De Jong set for Newcastle return|
|Crystal Palace v West Ham: No excuses from Millen|
|Pearson looking for Chelsea indication|
|Blanc wants Rabiot to stay|
|Bowyer reveals Hull approach for Rhodes|
|Atletico out to gatecrash Barca, Real party once again|
|Barcelona go back to the future|
|CSL Preview: Beijing Guoan, Dalian Aerbin hit the road|
|Westwood returns to Ireland squad|
|Millen confident on Palace job prospects|
|Pedro struck down by gastroenteritis|
|Championship Preview: Magath preaches patience, Ipswich host East Anglian derby|
|Ribery not ready for Bayern return - Guardiola|
|Ancelotti: Di Maria has asked to leave|
|Moody resigns from Palace post|
|Everton v Arsenal: Martinez denies Everton have advantage|
|Coventry agree Ricoh return|
|Allardyce eyes defensive improvements|
|FA to investigate Cardiff dossier|
|Simeone not expecting to retain title|
|Balotelli bids farewell to Milan team-mates|
|Wenger open to signings after Arteta blow|
|Martinez to wait on Kone, Oviedo before considering late signings|
|Ocampos believes in Jardim´s methods|
|Villas-Boas calls for Zenit focus|
|Jovetic predicts bright future at City|
|Hamren hoping for quick Ibrahimovic recovery|
|Van Gaal retains focus on team ethic|
|Martinez calls for Everton consistency|
|Oxlade-Chamberlain: Arsenal´s best will come|
|Benaglio retires from Swiss duty|
|MLS Review: Galaxy stun Rapids, Sounders held|
|CONCACAF Champions League Review: MLS clubs shine|
|Panama 4 Cuba 0: Hosts finally win|
|K. League Preview: In-form Jeonbuk out to increase advantage|
|Copa Sudamericana Review: Penarol poised to advance, General Diaz on track|
|Liga MX Preview: America target another win|
|J.League Preview: In-form Kashima, Tokyo face tests|
|Fresh faces in Australia squad|
|Copa Argentina Review: River Plate, Estudiantes des Caseros reach quarters|
|Girard rues wasteful Lille|
|Scholes: ´I am scared for United´|
|Patient Inter got just rewards - Mazzarri|
|UEFA Europa League Review: Inter win in Iceland|
|UEFA Champions League Play-offs Review: Away sides prosper in play-off first legs|
|Fulham 0 Wolves 1: Sako inflicts more misery on hosts|
|Bundesliga Preview: Klopp set to break record as Dortmund host Leverkusen|
|Bruce reveals Aboubakar interest|
|Kane ready to light up Premier League|
|Jerome joins Norwich|
|Bayern destined to dominate Bundesliga once again|
|Perfectionist Guardiola raises the bar|
|Pohang Steelers 0 Seoul 0: Last-eight tie on a knife edge|
|Rojo pens five-year deal at United|
|Bayern Munich v Wolfsburg: Badstuber wary of tough opening|
|Eredivisie Preview: Ajax and PSV lock horns in De Topper, Groningen face Den Haag|
|Ligue 1 Preview: Bordeaux and Saint-Etienne out to continue dream starts|
|Thai Premier League Review: 10-man Buriram survive Muang Thong test, BEC Tero defeated|
|QPR seal Fer capture|
|Modric aiming for further glory after extending deal|
|Dzeko pens new City deal|
|Marotta: Vidal was never for sale|
|Evian v Paris Saint-Germain: Champions wary of wounded hosts|
|Ulloa gains confidence from debut goal|
|Hamann hoping for competitive Bundesliga|
|Dortmund duo Kirch and Ji sidelined|
|Irvine will not rush Gamboa|
|Messi, Mascherano laud La Masia|
|Moses: Hughes reason for Stoke move|
|Lahm aware of Dortmund threat|
|Atletico Madrid v Real Madrid: Rodriguez targets winning goal after opening Real account|
|Wilshere urges focus for return leg|
|Milan: No Liverpool offer for Balotelli|
|Michu chat aided Fernandez switch|
|Western Sydney Wanderers 1 Guangzhou Evergrande 0: Tempers flare after Sydney triumph|
|Van der Vaart headlines Netherlands squad|
|CAF Champions League Preview: Dead rubbers brought to life by Zamalek appeal|
|UEFA open Tavecchio investigation|
|Napoli sign Villarreal´s De Guzman|
|My heart is at Bayern, insists Muller|
|Altidore at his happiest - Poyet|
|Barca to go to CAS after FIFA rejects appeal|
|Swansea confirm Fernandez signing|
|Leverkusen will not relax, says Schmidt|
|Modric pens new Real deal|
|Amat relishing Fernandez competition|
|Snodgrass out for six months|
|Di Maria is Real´s best - Simeone|
|Kompany hails City contract dealings|
|Higuain: Napoli have to qualify|
|Martinez backs Barkley to bounce back|
|Stjarnan ready to exploit Inter´s ´weaknesses´|
|No price-tag pressure for Liverpool´s Markovic|
|Courtois admits departure thoughts|
|Skrtel: Liverpool must defend ´as a group´|
|Duff predicts Chelsea success, ´worried´ for Fulham|
|CONCACAF Champions League Review: Portland shine in Guyana|
|Simeone: We have a ´50-50 chance´|
|Copa Sudamericana Review: Cerro Porteno win away, Huachipato start strongly|
|Ronaldo injury ´not serious´ - Ancelotti|
|Martino names Argentina squad|
|Supercopa ´still open´ - Alonso|
|Expect goals in Lille, Porto clash - Girard|
|Courtois wants Cech stay|
|Benitez backs Napoli to score|
|Real Madrid 1 Atletico Madrid 1: Ronaldo off at half-time as Real denied|
|League Two Review: Morecambe, Burton remain unbeaten, Portsmouth defeat Northampton|