{"exploit":{"id":"EDB-35554","name":"Perl 5.x - 'lc()' / 'uc()' TAINT Mode Protection Security Bypass","description":"Perl 5.x - 'lc()' / 'uc()' TAINT Mode Protection Security Bypass","cves":["CVE-2011-1487"],"author":"mmartinec","published":"2011-03-30","platform":"linux","type":"remote","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/35554","path":"exploits/linux/remote/35554.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-35554.txt","vulnerabilities":[{"id":"CVE-2011-1487","state":"PUBLISHED","title":null,"titleSource":null,"description":"The (1) lc, (2) lcfirst, (3) uc, and (4) ucfirst functions in Perl 5.10.x, 5.11.x, and 5.12.x through 5.12.3, and 5.13.x through 5.13.11, do not apply the taint attribute to the return value upon processing tainted input, which might allow context-dependent attackers to bypass the taint protection mechanism via a crafted string.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2011-1487","cvss":{"version":"2.0","baseScore":5,"severity":"medium","vectorString":"AV:N/AC:L/Au:N/C:N/I:P/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2011-1487"},"updatedAt":"2024-08-06T22:28:41.416Z","retrievedAt":"2026-11-26T13:06:46.690Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-35554.png?v=2","url":"https://exploitbin.com/exploits/EDB-35554","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-35554/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-35554/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"source: https://web.archive.org/web/2011/https://www.securityfocus.com/bid/47124/info\n\nPerl is prone to a security-bypass weakness that occurs when laundering tainted input.\n\nAttackers can leverage this issue to bypass security checks in perl applications that rely on TAINT mode protection functionality. This opens such applications up to potential attacks that take advantage of the software's failure to properly sanitize user-supplied input.\n\n----------------------------------------\n\nThe following example input is available:\n\n> perl -Te 'use Scalar::Util qw(tainted); $t=$0; $u=lc($t); printf(\"%d,%d\\n\",tainted($t),tainted($u))'\n\n> perl -Te 'use Scalar::Util qw(tainted); $t=$0; $u=lc($t); printf(\"%d,%d\\n\",tainted($t),tainted($u))'","sha256":"ccaaab66a1fbeef98317d6eeb69cd797a211f4a44417777c317bf3dcac44b780","bytes":739,"fetchedAt":"2026-11-26T13:06:42.028Z","encoding":"utf-8 (display only; download retains original bytes)"}