Closed
Bug 258201
Opened 20 years ago
Closed 20 years ago
Remove detection of admin in inc_header
Categories
(addons.mozilla.org Graveyard :: Developer Pages, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
1.0
People
(Reporter: csthomas, Assigned: wolf)
References
()
Details
(Whiteboard: beta)
In inc_header.php:
$pos = strpos($_SERVER["REQUEST_URI"], "/admin");
if ($pos !== false) {
echo'<LINK REL="STYLESHEET" TYPE="text/css" HREF="/core/mozupdates.bak.css">';
$application="login"; $_SESSION["application"]="login";
unset($_SESSION["app_version"], $_SESSION["app_os"]);
}
Compare the source code for http://update.mozilla.org/?/admin to the code for
http://update.mozilla.org/ - you'll see that we run that code in the first case,
even though we shouldn't.
I'm marking security just in case setting the app to login exposes something we
don't want to.
For what its worth, this may be a case where code sharing isn't as good - if
you're going to separate admin/, it needs to be properly separated.
Assignee | ||
Comment 1•20 years ago
|
||
heh, the only thing it affects is which tab is highlighted. That section of code
is a hack to avoid breaking the admin panel. IIRC. (Primarily for the stylesheet
to be included, as the new styles don't degrade well for admin. So it may be
unsafe, but for what its doing, it doesn't actually matter.
Assignee | ||
Comment 2•20 years ago
|
||
If its actually worth patching that hack to be safer, feel free to submit a
patch on it.
The better fix though is to complete bug 254925 to fix the strange dependency on
the backup stylesheet (in favor of either no admin-specific styles or an
admin-specific additional stylesheet included in a different location). Also,
Bug 249447 is removing the highlighted tabs. which will fix the need for those
lines. Thereby removing the entire block in question.
Assignee | ||
Comment 3•20 years ago
|
||
This isn't a security bug, though I'm not empowered to remove that.
Status: NEW → ASSIGNED
Summary: Unsafe detection of admin use in header → Remove detection of admin in inc_header
Whiteboard: not-security, fixed-development
Assignee | ||
Updated•20 years ago
|
Whiteboard: not-security, fixed-development → fixed-development
Assignee | ||
Updated•20 years ago
|
Whiteboard: fixed-development → fixed-beta
Assignee | ||
Comment 5•20 years ago
|
||
Bulk Moving Developer Control Panel bugs to new component.
(Filter: massdevcpspam)
Component: Update → Developers
Product: mozilla.org → Update
Version: other → unspecified
Comment 6•20 years ago
|
||
restoring the security flag that got removed during the product move.
Group: webtools-security
Mass-resolving bugs that have been fixed on trunk.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 8•20 years ago
|
||
Sorry for the bugspam, reopening bugs wrongly marked as resolved.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Updated•20 years ago
|
Status: REOPENED → ASSIGNED
Assignee | ||
Updated•20 years ago
|
Target Milestone: --- → 1.0
Assignee | ||
Updated•20 years ago
|
Group: webtools-security
Status: ASSIGNED → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → FIXED
Whiteboard: fixed-beta → beta
Version: unspecified → 0.9
Updated•9 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•