Closed Bug 824494 Opened 13 years ago Closed 13 years ago

possible hard codded get users and passwords

Categories

(Core :: Widget: Gtk, defect)

18 Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: douglaswtcs, Unassigned)

References

Details

(Keywords: reporter-external)

Attachments

(1 file)

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.
Component: Untriaged → Widget: Gtk
Product: Firefox → Core
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
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
Douglas, please explain how you can "get users and passwords".
Flags: needinfo?(douglaswtcs)
"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
Flags: sec-bounty? → sec-bounty-
Group: core-security

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.

Attachment

General

Created:
Updated:
Size: