Bug 102466
| Summary: | netdump server overly trusts client root | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 2.1 | Reporter: | Steve Bonneville <sbonnevi> |
| Component: | netdump | Assignee: | Thomas Graf <tgraf> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.1 | CC: | rkhan |
| Target Milestone: | --- | Keywords: | Security |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2008-06-13 20:35:11 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Steve Bonneville
2003-08-15 15:57:28 UTC
Steve -- thanks for the report.
I guess I've never seen an authorized_keys entry with a command restriction.
Can you suggest how would that be properly scripted in the netdump init script?
Here's what it does now:
propagate ()
{
# propagate netdump ssh public key to the crashdump server
cat /etc/sysconfig/netdump_id_dsa.pub | \
ssh -x netdump@$NETDUMPADDR cat '>>' /var/crash/.ssh/authorized_keys2
}
Damn -- the MAGIC numbers are only calculated at each boot time registration; the "propagate" command is a one-time only operation. Even though we can't encode the MAGIC numbers into the conditional we can submit that information via standard input. I suggest we format the authorized entry like this: command="cat /var/crash/magic/$LOCALADDR",no-port-forwarding $KEY ... and do: echo "$MAGIC2$MAGIC1" | ssh -x -i /etc/... netdump@NETDUMPADDR Thoughts? |