Closed
Bug 824494
Opened 13 years ago
Closed 13 years ago
possible hard codded get users and passwords
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: douglaswtcs, Unassigned)
References
Details
(Keywords: reporter-external)
Attachments
(1 file)
|
34.68 KB,
text/plain
|
Details |
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20100101 Firefox/17.0
Build ID: 20121128204232
Steps to reproduce:
ANALISE OF THE CODES FROM THE FIREFOX
Actual results:
CRITICAL ERROR OF PROGRAMMATION
Expected results:
Line: 831
Column: 82
00826: const PRUnichar *strings[] = { realm.get(), dispHost.get() };
00827: bundle->FormatStringFromName(NS_LITERAL_STRING("EnterLoginForRealm").get(),
00828: strings, 2, getter_Copies(nsmessage));
00829: } else {
00830: const PRUnichar *strings[] = { dispHost.get() };
00831: bundle->FormatStringFromName(NS_LITERAL_STRING("EnterUserPasswordFor").get(),
00832: strings, 1, getter_Copies(nsmessage));
00833: }
00834: } else {
00835: NS_ConvertUTF8toUTF16 userName(default_user);
00836: const PRUnichar *strings[] = { userName.get(), dispHost.get() };
AND
Line: 837
Column: 76
00832: strings, 1, getter_Copies(nsmessage));
00833: }
00834: } else {
00835: NS_ConvertUTF8toUTF16 userName(default_user);
00836: const PRUnichar *strings[] = { userName.get(), dispHost.get() };
00837: bundle->FormatStringFromName(NS_LITERAL_STRING("EnterPasswordFor").get(),
00838: strings, 2, getter_Copies(nsmessage));
00839: }
00840: } else {
00841: g_warning("Unknown mount operation request (flags: %x)", flags);
00842: }
THIS CODES HAVE STRINGS OF HARDCODED WITH FUNCTION GET();
AND I CAN GET USERS AND PASSWORDS.
Updated•13 years ago
|
Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Updated•13 years ago
|
Flags: sec-bounty?
Summary: I Found a Vulnerability "HardCodded" in the Firefox 18.0b5 what permit get users and passwords → possible hard codded get users and passwords
Comment 2•13 years ago
|
||
The destruction of temporaries created by NS_LITERAL_STRING() happen "as the last step in evaluating the full-expression" that includes the call to FormatStringFromName(). i.e. The temporaries are destroyed after FormatStringFromName() returns, and the result of their get() call is not used after the FormatStringFromName() call.
The lifetimes of variables involved in other get() calls look appropriate.
Am I missing something?
How do you get user and password strings?
OS: Windows XP → Linux
Comment 3•13 years ago
|
||
Douglas, please explain how you can "get users and passwords".
Flags: needinfo?(douglaswtcs)
Comment 4•13 years ago
|
||
"EnterLoginForRealm", "EnterUserPasswordFor" and "EnterPasswordFor" are
message format strings:
http://dxr.mozilla.org/mozilla-central/toolkit/locales/en-US/chrome/global/commonDialogs.properties.html#l28
that are used to build a message to display in an input dialog:
http://dxr.mozilla.org/mozilla-central/extensions/gio/nsGIOProtocolHandler.cpp.html?string=nsGIOProtocolHandler.cpp#l824
I don't see any problem with the usage.
No response from Reporter so resolving.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
Updated•13 years ago
|
Flags: sec-bounty? → sec-bounty-
Updated•11 years ago
|
Group: core-security
Updated•2 years ago
|
Keywords: reporter-external
Comment 6•19 days ago
|
||
Clearing the needinfo request since it is pending on an account that cannot answer (a bot, a component watcher, or a disabled account).
For more information, please visit BugBot documentation.
Flags: needinfo?(douglaswtcs)
You need to log in
before you can comment on or make changes to this bug.
Description
•