Welcome Guest. | Log In| Register | Membership Benefits
  • Email this page E-mail this page
  • |  Print Print this page
  • |   Bookmark and Share

SNMP Joins Dark Side in New XSS Attack

Researchers show how the Simple Network Management Protocol can be abused for cross-site scripting attacks

Feb 26, 2008 | 06:47 AM

By Kelly Jackson Higgins
DarkReading

It’s yet another new spin on a pervasive attack -- this time using the old standby Simple Network Management Protocol (SNMP) to stage cross-site scripting (XSS) attacks.

XSS, which basically forces a Website to echo malicious code that then gets loaded into a user's browser, is one of the most common vulnerabilities in Web applications. Researchers with ProCheckUp Ltd. recently discovered what they think may be a new type of attack vector, using SNMP to create a “persistent XSS” attack. Persistent XSS is a more powerful XSS attack where malicious code is stored on a Website for a period of time, and all the user has to do is view the page to get infected.

With SNMP, the attacker changes parameters in the device to then launch a persistent XSS attack. ProCheckUp found the SNMP-XSS vulnerability, as well as several others, while researching ZyXEL’s Prestige router products, which are commonly used in home, SOHO, and ISP networks.

"I believe that this is a totally brand new attack which I suspect affects many other appliances from other vendors," says Adrian Pastor, a security consultant with ProCheckUp.

Pastor demonstrated a proof-of-concept for this attack in a report he wrote on his findings. "In my paper, I included a proof-of-concept JavaScript piece of code that performs a phishing attack as an attempt to steal the admin password, which gets sent to the attacker's site," he says.

According to Pastor's report, a persistent XSS attack is launched "when the parameters containing the payload are printed on the browser via the web interface of the device.” The problem lies in part with the fact that ZyXEL’s Prestige products run with SNMP, HTTP, and telnet in default mode on its WAN interface, Pastor says. “This is at least true among the ISPs used by some of our customers who we offer penetration testing services for,” he writes.

XSS expert RSnake -- aka Robert Hansen, CEO of SecTheory -- says using SNMP to launch an XSS attack is definitely an interesting approach. “It's hard to say that it's new since lots of exploits use logging variables to instantiate the XSS attack, but that's definitely the first time I've heard SNMP [being] used."

RSnake says SNMP and Web application hackers don’t typically intersect, so the attack method is an interesting mix: "Lots of hackers use SNMPwalk, but not many Web app hackers."

Such an attack would most likely be a targeted one rather than a large-scale one, he says. "It would be almost impossible to automate an attack like that because you'd need to set up a Website to pull the credentials or log the output, etc. I think it's less accessible than most forms of XSS, so it's less likely to see wide scale abuse. But it is a very interesting vector for the same old attack we’ve known and seen affect so many things, so many times.”

The attacker would execute an SNMP “write” operation, where he would inject malicious HTML or JavaScript code via parameters such as “system.sysName.0,” according to Pastor.

Meanwhile, ProCheckUp also discovered several other vulnerabilities in the ZyXEL products, including remote war-driving via the Internet, privilege escalation, SNMP “read” and “write” flaws, credential disclosure weaknesses, and authentication vulnerabilities.

Have a comment on this story? Please click "Discuss" below. If you'd like to contact Dark Reading's editors directly, send us a message.

  • ProCheckUp Ltd.
  • SecTheory LLC
  • ZyXEL Communications Corp.


  • Subscribe to RSS










    Bugs
    ENTERPRISE VULNERABILITIES
    Vulnerability:cxf
    Published:2010-08-19
    Severity:High
    Description:Apache CXF 2.0.x before 2.0.13, 2.1.x before 2.1.10, and 2.2.x before 2.2.9, as used in Apache ServiceMix, Apache Camel, Apache Chemistry, Apache jUDDI, Apache Geronimo, and other products, does not properly reject DTDs in SOAP messages, which allows remote attackers to read arbitrary files, send HTTP requests to intranet servers, or cause a denial of service (CPU and memory consumption) via a crafted DTD, as demonstrated by an entity declaration in a request to samples/wsdl_first_pure_xml, a similar issue to CVE-2010-1632.
    Vulnerability:libvirt
    Published:2010-08-19
    Severity:Medium
    Description:Red Hat libvirt, possibly 0.6.1 through 0.8.2, looks up disk backing stores without referring to the user-defined main disk format, which might allow guest OS users to read arbitrary files on the host OS, and possibly have unspecified other impact, via unknown vectors.
    Vulnerability:libvirt
    Published:2010-08-19
    Severity:Medium
    Description:Red Hat libvirt, possibly 0.7.2 through 0.8.2, recurses into disk-image backing stores without extracting the defined disk backing-store format, which might allow guest OS users to read arbitrary files on the host OS, and possibly have unspecified other impact, via unknown vectors.
    Vulnerability:libvirt
    Published:2010-08-19
    Severity:Medium
    Description:Red Hat libvirt, possibly 0.6.0 through 0.8.2, creates new images without setting the user-defined backing-store format, which allows guest OS users to read arbitrary files on the host OS via unspecified vectors.
    Vulnerability:libvirt
    Published:2010-08-19
    Severity:Low
    Description:Red Hat libvirt 0.2.0 through 0.8.2 creates iptables rules with improper mappings of privileged source ports, which allows guest OS users to bypass intended access restrictions by leveraging IP address and source-port values, as demonstrated by copying and deleting an NFS directory tree.


    Briefing Centers
    POWERFUL INFORMATION
    AT YOUR FINGERTIPS
    (SPONSORED LINKS)