ID

VAR-201112-0098


CVE

CVE-2011-5008


TITLE

3S CoDeSys GatewayService Component Integer Overflow Vulnerability

Trust: 1.6

sources: IVD: 5788c89d-d3e0-4f1f-af03-176565094d3a // IVD: 7d7d04e2-463f-11e9-a226-000c29342cb1 // CNVD: CNVD-2011-5590 // CNNVD: CNNVD-201112-448

DESCRIPTION

Integer overflow in the GatewayService component in 3S CoDeSys 3.4 SP4 Patch 2 allows remote attackers to execute arbitrary code via a large size value in the packet header, which triggers a heap-based buffer overflow. CoDeSys is a powerful PLC software programming tool that supports IEC61131-3 standard IL, ST, FBD, LD, CFC, SFC six PLC programming languages. The GatewayService has an integer overflow. The GatewayService uses the 32-bit value offset at the header 0x0c to specify the size of the received data. The program receives this value, increasing the number of 0x34 and allocating the amount of memory can cause an integer overflow. CmpWebServer is a component of the 3SRTESrv3 and CoDeSysControlService services for handling 8080 port connections. The function 0040f480 copies the input URI to a limited stack buffer, which can trigger a buffer overflow. 3S CoDeSys handles the Content-Length value in an HTTP POST request to trigger a null pointer reference. An integer overflow vulnerability exists in the GatewayService component in 3S CoDeSys 3.4 SP4 Patch 2 release. CoDeSys is prone to a stack-based buffer-overflow and an integer-overflow vulnerability. Attackers can exploit these issues to execute arbitrary code within the context of the application. Failed attacks may cause a denial-of-service condition. ---------------------------------------------------------------------- Secunia is hiring! Find your next job here: http://secunia.com/company/jobs/ ---------------------------------------------------------------------- TITLE: CoDeSys Multiple Vulnerabilities SECUNIA ADVISORY ID: SA47018 VERIFY ADVISORY: Secunia.com http://secunia.com/advisories/47018/ Customer Area (Credentials Required) https://ca.secunia.com/?page=viewadvisory&vuln_id=47018 RELEASE DATE: 2011-12-01 DISCUSS ADVISORY: http://secunia.com/advisories/47018/#comments AVAILABLE ON SITE AND IN CUSTOMER AREA: * Last Update * Popularity * Comments * Criticality Level * Impact * Where * Solution Status * Operating System / Software * CVE Reference(s) http://secunia.com/advisories/47018/ ONLY AVAILABLE IN CUSTOMER AREA: * Authentication Level * Report Reliability * Secunia PoC * Secunia Analysis * Systems Affected * Approve Distribution * Remediation Status * Secunia CVSS Score * CVSS https://ca.secunia.com/?page=viewadvisory&vuln_id=47018 ONLY AVAILABLE WITH SECUNIA CSI AND SECUNIA PSI: * AUTOMATED SCANNING http://secunia.com/vulnerability_scanning/personal/ http://secunia.com/vulnerability_scanning/corporate/wsus_sccm_3rd_third_party_patching/ DESCRIPTION: Luigi Auriemma has discovered multiple vulnerabilities in CoDeSys, which can be exploited by malicious people to cause a DoS (Denial of Service) and compromise a vulnerable system. 2) A boundary error in the Control service when processing web requests can be exploited to cause a stack-based buffer overflow via an overly long URL sent to TCP port 8080. 3) A NULL pointer dereference error in the CmbWebserver.dll module of the Control service when processing HTTP POST requests can be exploited to deny processing further requests via a specially crafted "Content-Length" header sent to TCP port 8080. 4) A second NULL pointer dereference error in the CmbWebserver.dll module of the Control service when processing web requests can be exploited to deny processing further requests by sending a request with an unknown HTTP method to TCP port 8080. 5) An error in the Control service when processing web requests containing a non-existent directory can be exploited to create arbitrary directories within the webroot via requests sent to TCP port 8080. The vulnerabilities are confirmed in version 3.4 SP4 Patch 2. Other versions may also be affected. SOLUTION: Restrict access to trusted hosts only. PROVIDED AND/OR DISCOVERED BY: Luigi Auriemma ORIGINAL ADVISORY: http://aluigi.altervista.org/adv/codesys_1-adv.txt OTHER REFERENCES: Further details available in Customer Area: http://secunia.com/vulnerability_intelligence/ DEEP LINKS: Further details available in Customer Area: http://secunia.com/vulnerability_intelligence/ EXTENDED DESCRIPTION: Further details available in Customer Area: http://secunia.com/vulnerability_intelligence/ EXTENDED SOLUTION: Further details available in Customer Area: http://secunia.com/vulnerability_intelligence/ EXPLOIT: Further details available in Customer Area: http://secunia.com/vulnerability_intelligence/ ---------------------------------------------------------------------- About: This Advisory was delivered by Secunia as a free service to help private users keeping their systems up to date against the latest vulnerabilities. Subscribe: http://secunia.com/advisories/secunia_security_advisories/ Definitions: (Criticality, Where etc.) http://secunia.com/advisories/about_secunia_advisories/ Please Note: Secunia recommends that you verify all advisories you receive by clicking the link. Secunia NEVER sends attached files with advisories. Secunia does not advise people to install third party patches, only use those supplied by the vendor. ---------------------------------------------------------------------- Unsubscribe: Secunia Security Advisories http://secunia.com/sec_adv_unsubscribe/?email=packet%40packetstormsecurity.org ----------------------------------------------------------------------

Trust: 5.04

sources: NVD: CVE-2011-5008 // JVNDB: JVNDB-2011-003531 // CNVD: CNVD-2011-5128 // CNVD: CNVD-2011-5125 // CNVD: CNVD-2011-5126 // CNVD: CNVD-2011-5127 // CNVD: CNVD-2011-5590 // BID: 50849 // IVD: 5788c89d-d3e0-4f1f-af03-176565094d3a // IVD: 7d7d04e2-463f-11e9-a226-000c29342cb1 // PACKETSTORM: 107457

IOT TAXONOMY

category:['ICS']sub_category: -

Trust: 3.4

sources: IVD: 5788c89d-d3e0-4f1f-af03-176565094d3a // IVD: 7d7d04e2-463f-11e9-a226-000c29342cb1 // CNVD: CNVD-2011-5128 // CNVD: CNVD-2011-5125 // CNVD: CNVD-2011-5126 // CNVD: CNVD-2011-5127 // CNVD: CNVD-2011-5590

AFFECTED PRODUCTS

vendor:3s smartmodel:codesys sp4 patchscope:eqversion:3.42

Trust: 2.7

vendor:3ssoftwaremodel:codesysscope:eqversion:3.4

Trust: 1.6

vendor:3s smartmodel:codesysscope:eqversion:3.4 sp4 patch 2

Trust: 0.8

vendor:nomodel: - scope: - version: -

Trust: 0.6

vendor:codesysmodel: - scope:eqversion:3.4

Trust: 0.4

vendor:3s smartmodel:codesysscope:eqversion:3.4

Trust: 0.3

vendor:3s smartmodel:codesysscope:eqversion:2.3

Trust: 0.3

vendor:3s smartmodel:codesysscope:neversion:3.5

Trust: 0.3

vendor:3s smartmodel:codesysscope:neversion:2.3.9.32

Trust: 0.3

sources: IVD: 5788c89d-d3e0-4f1f-af03-176565094d3a // IVD: 7d7d04e2-463f-11e9-a226-000c29342cb1 // CNVD: CNVD-2011-5128 // CNVD: CNVD-2011-5125 // CNVD: CNVD-2011-5126 // CNVD: CNVD-2011-5127 // CNVD: CNVD-2011-5590 // BID: 50849 // JVNDB: JVNDB-2011-003531 // CNNVD: CNNVD-201112-448 // NVD: CVE-2011-5008

CVSS

SEVERITY

CVSSV2

CVSSV3

nvd@nist.gov: CVE-2011-5008
value: HIGH

Trust: 1.0

NVD: CVE-2011-5008
value: HIGH

Trust: 0.8

CNVD: CNVD-2011-5590
value: HIGH

Trust: 0.6

CNNVD: CNNVD-201112-448
value: HIGH

Trust: 0.6

IVD: 5788c89d-d3e0-4f1f-af03-176565094d3a
value: HIGH

Trust: 0.2

IVD: 7d7d04e2-463f-11e9-a226-000c29342cb1
value: HIGH

Trust: 0.2

nvd@nist.gov: CVE-2011-5008
severity: HIGH
baseScore: 7.5
vectorString: AV:N/AC:L/AU:N/C:P/I:P/A:P
accessVector: NETWORK
accessComplexity: LOW
authentication: NONE
confidentialityImpact: PARTIAL
integrityImpact: PARTIAL
availabilityImpact: PARTIAL
exploitabilityScore: 10.0
impactScore: 6.4
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 1.8

CNVD: CNVD-2011-5590
severity: HIGH
baseScore: 7.5
vectorString: AV:N/AC:L/AU:N/C:P/I:P/A:P
accessVector: NETWORK
accessComplexity: LOW
authentication: NONE
confidentialityImpact: PARTIAL
integrityImpact: PARTIAL
availabilityImpact: PARTIAL
exploitabilityScore: 10.0
impactScore: 6.4
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 0.6

IVD: 5788c89d-d3e0-4f1f-af03-176565094d3a
severity: HIGH
baseScore: 7.5
vectorString: AV:N/AC:L/AU:N/C:P/I:P/A:P
accessVector: NETWORK
accessComplexity: LOW
authentication: NONE
confidentialityImpact: PARTIAL
integrityImpact: PARTIAL
availabilityImpact: PARTIAL
exploitabilityScore: 10.0
impactScore: 6.4
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.9 [IVD]

Trust: 0.2

IVD: 7d7d04e2-463f-11e9-a226-000c29342cb1
severity: HIGH
baseScore: 7.5
vectorString: AV:N/AC:L/AU:N/C:P/I:P/A:P
accessVector: NETWORK
accessComplexity: LOW
authentication: NONE
confidentialityImpact: PARTIAL
integrityImpact: PARTIAL
availabilityImpact: PARTIAL
exploitabilityScore: 10.0
impactScore: 6.4
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.9 [IVD]

Trust: 0.2

sources: IVD: 5788c89d-d3e0-4f1f-af03-176565094d3a // IVD: 7d7d04e2-463f-11e9-a226-000c29342cb1 // CNVD: CNVD-2011-5590 // JVNDB: JVNDB-2011-003531 // CNNVD: CNNVD-201112-448 // NVD: CVE-2011-5008

PROBLEMTYPE DATA

problemtype:CWE-189

Trust: 1.8

sources: JVNDB: JVNDB-2011-003531 // NVD: CVE-2011-5008

THREAT TYPE

remote

Trust: 1.2

sources: CNNVD: CNNVD-201111-501 // CNNVD: CNNVD-201112-448

TYPE

digital error

Trust: 0.6

sources: CNNVD: CNNVD-201112-448

CONFIGURATIONS

sources: JVNDB: JVNDB-2011-003531

PATCH

title:Top Pageurl:http://www.3s-software.com/

Trust: 0.8

title:3S CoDeSys GatewayService component integer overflow vulnerability patchurl:https://www.cnvd.org.cn/patchInfo/show/37427

Trust: 0.6

sources: CNVD: CNVD-2011-5590 // JVNDB: JVNDB-2011-003531

EXTERNAL IDS

db:NVDid:CVE-2011-5008

Trust: 3.7

db:BIDid:50849

Trust: 3.3

db:ICS CERT ALERTid:ICS-ALERT-11-336-01A

Trust: 2.4

db:SECUNIAid:47018

Trust: 2.3

db:OSVDBid:77386

Trust: 1.6

db:CNVDid:CNVD-2011-5590

Trust: 1.0

db:CNNVDid:CNNVD-201112-448

Trust: 1.0

db:JVNDBid:JVNDB-2011-003531

Trust: 0.8

db:CNVDid:CNVD-2011-5128

Trust: 0.6

db:CNVDid:CNVD-2011-5125

Trust: 0.6

db:CNVDid:CNVD-2011-5126

Trust: 0.6

db:CNVDid:CNVD-2011-5127

Trust: 0.6

db:CNNVDid:CNNVD-201111-501

Trust: 0.6

db:BUGTRAQid:20111129 VULNERABILITIES IN 3S CODESYS 3.4 SP4 PATCH 2

Trust: 0.6

db:ICS CERTid:ICSA-12-006-01

Trust: 0.3

db:IVDid:5788C89D-D3E0-4F1F-AF03-176565094D3A

Trust: 0.2

db:IVDid:7D7D04E2-463F-11E9-A226-000C29342CB1

Trust: 0.2

db:PACKETSTORMid:107457

Trust: 0.1

sources: IVD: 5788c89d-d3e0-4f1f-af03-176565094d3a // IVD: 7d7d04e2-463f-11e9-a226-000c29342cb1 // CNVD: CNVD-2011-5128 // CNVD: CNVD-2011-5125 // CNVD: CNVD-2011-5126 // CNVD: CNVD-2011-5127 // CNVD: CNVD-2011-5590 // BID: 50849 // JVNDB: JVNDB-2011-003531 // PACKETSTORM: 107457 // CNNVD: CNNVD-201111-501 // CNNVD: CNNVD-201112-448 // NVD: CVE-2011-5008

REFERENCES

url:http://aluigi.altervista.org/adv/codesys_1-adv.txt

Trust: 4.4

url:http://www.us-cert.gov/control_systems/pdf/ics-alert-11-336-01a.pdf

Trust: 2.4

url:http://secunia.com/advisories/47018

Trust: 2.2

url:http://www.osvdb.org/77386

Trust: 1.6

url:http://seclists.org/bugtraq/2011/nov/178

Trust: 1.6

url:https://exchange.xforce.ibmcloud.com/vulnerabilities/71531

Trust: 1.0

url:http://cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2011-5008

Trust: 0.8

url:http://web.nvd.nist.gov/view/vuln/detail?vulnid=cve-2011-5008

Trust: 0.8

url:http://www.securityfocus.com/bid/50849

Trust: 0.6

url:http://www.3s-software.com/index.shtml?en_codesysv3_en

Trust: 0.3

url:http://www.us-cert.gov/control_systems/pdf/icsa-12-006-01.pdf

Trust: 0.3

url:http://secunia.com/company/jobs/

Trust: 0.1

url:http://secunia.com/vulnerability_intelligence/

Trust: 0.1

url:http://secunia.com/vulnerability_scanning/corporate/wsus_sccm_3rd_third_party_patching/

Trust: 0.1

url:http://secunia.com/advisories/secunia_security_advisories/

Trust: 0.1

url:http://secunia.com/advisories/about_secunia_advisories/

Trust: 0.1

url:http://secunia.com/vulnerability_scanning/personal/

Trust: 0.1

url:http://secunia.com/sec_adv_unsubscribe/?email=packet%40packetstormsecurity.org

Trust: 0.1

url:https://ca.secunia.com/?page=viewadvisory&vuln_id=47018

Trust: 0.1

url:http://secunia.com/advisories/47018/#comments

Trust: 0.1

url:http://secunia.com/advisories/47018/

Trust: 0.1

sources: CNVD: CNVD-2011-5128 // CNVD: CNVD-2011-5125 // CNVD: CNVD-2011-5126 // CNVD: CNVD-2011-5127 // CNVD: CNVD-2011-5590 // BID: 50849 // JVNDB: JVNDB-2011-003531 // PACKETSTORM: 107457 // CNNVD: CNNVD-201111-501 // CNNVD: CNNVD-201112-448 // NVD: CVE-2011-5008

CREDITS

Luigi Auriemma

Trust: 0.6

sources: CNNVD: CNNVD-201111-501

SOURCES

db:IVDid:5788c89d-d3e0-4f1f-af03-176565094d3a
db:IVDid:7d7d04e2-463f-11e9-a226-000c29342cb1
db:CNVDid:CNVD-2011-5128
db:CNVDid:CNVD-2011-5125
db:CNVDid:CNVD-2011-5126
db:CNVDid:CNVD-2011-5127
db:CNVDid:CNVD-2011-5590
db:BIDid:50849
db:JVNDBid:JVNDB-2011-003531
db:PACKETSTORMid:107457
db:CNNVDid:CNNVD-201111-501
db:CNNVDid:CNNVD-201112-448
db:NVDid:CVE-2011-5008

LAST UPDATE DATE

2024-08-14T14:21:34.303000+00:00


SOURCES UPDATE DATE

db:CNVDid:CNVD-2011-5128date:2011-12-05T00:00:00
db:CNVDid:CNVD-2011-5125date:2011-12-05T00:00:00
db:CNVDid:CNVD-2011-5126date:2011-12-05T00:00:00
db:CNVDid:CNVD-2011-5127date:2011-12-05T00:00:00
db:CNVDid:CNVD-2011-5590date:2011-12-26T00:00:00
db:BIDid:50849date:2012-11-15T23:10:00
db:JVNDBid:JVNDB-2011-003531date:2011-12-28T00:00:00
db:CNNVDid:CNNVD-201111-501date:2011-12-01T00:00:00
db:CNNVDid:CNNVD-201112-448date:2011-12-26T00:00:00
db:NVDid:CVE-2011-5008date:2017-08-29T01:30:38.583

SOURCES RELEASE DATE

db:IVDid:5788c89d-d3e0-4f1f-af03-176565094d3adate:2011-12-26T00:00:00
db:IVDid:7d7d04e2-463f-11e9-a226-000c29342cb1date:2011-12-26T00:00:00
db:CNVDid:CNVD-2011-5128date:2011-12-05T00:00:00
db:CNVDid:CNVD-2011-5125date:2011-12-05T00:00:00
db:CNVDid:CNVD-2011-5126date:2011-12-05T00:00:00
db:CNVDid:CNVD-2011-5127date:2011-12-05T00:00:00
db:CNVDid:CNVD-2011-5590date:2011-12-26T00:00:00
db:BIDid:50849date:2011-11-29T00:00:00
db:JVNDBid:JVNDB-2011-003531date:2011-12-28T00:00:00
db:PACKETSTORMid:107457date:2011-12-01T04:30:55
db:CNNVDid:CNNVD-201111-501date:1900-01-01T00:00:00
db:CNNVDid:CNNVD-201112-448date:2011-12-26T00:00:00
db:NVDid:CVE-2011-5008date:2011-12-25T01:55:04.693