# SecureCodePairs Validation Report **Status:** PASS - Total records: 470 - Errors: 0 | Warnings: 250 ## Errors (none) ## Warnings - SCP-000197: vulnerable_code [Java] /tmp/tmpsh18ffys.java:1: error: cannot find symbol String filter = "(&(uid=" + user + ")(password=" + pw + "))"; // Vulnerable ^ symbol: variable user location: class tmpsh18ffys /tmp/tmpsh18ffys.java:1: error: cannot find symbol String filter = "(&(uid=" + user + - SCP-000197: secure_code [Java] /tmp/tmp3t29q5fg.java:1: error: cannot find symbol String filter = "(&(uid=" + LdapEncoder.filterEncode(user) + ")(password=" + LdapEncoder.filterEncode(pw) + "))"; // Secure ^ symbol: variable user location: class tmp3t29q5fg /tmp/tmp3t29q - SCP-000100: vulnerable_code [Go] /tmp/tmph8o48heq.go:1:1: expected 'package', found rules - SCP-000100: secure_code [Go] /tmp/tmpb3qke3yq.go:1:1: expected 'package', found rules - SCP-000276: vulnerable_code [C++] /tmp/tmpw8fyf89b.cpp:1:6: error: ‘string’ in namespace ‘std’ does not name a type 1 | std::string q = "SELECT * FROM u WHERE name='" + name + "'"; | ^~~~~~ /tmp/tmpw8fyf89b.cpp:1:1: note: ‘std::string’ is defined in header ‘’; this is probably fixable by adding ‘#include ’; this is probably fixable by adding ‘#include ’ +++ - SCP-000289: vulnerable_code [C++] /tmp/tmpvywlps60.cpp:1:6: error: variable or field ‘add’ declared void 1 | void add(Order& o, double price) { | ^~~ /tmp/tmpvywlps60.cpp:1:10: error: ‘Order’ was not declared in this scope 1 | void add(Order& o, double price) { | ^~~~~ /tmp/tmpvywlps60.cpp:1:17: err - SCP-000289: secure_code [C++] /tmp/tmp2h48guwn.cpp:1:6: error: variable or field ‘add’ declared void 1 | void add(Order& o, double price) { | ^~~ /tmp/tmp2h48guwn.cpp:1:10: error: ‘Order’ was not declared in this scope 1 | void add(Order& o, double price) { | ^~~~~ /tmp/tmp2h48guwn.cpp:1:17: err - SCP-000478: vulnerable_code [C] /tmp/tmpexg3zl04.c:2:1: warning: data definition has no type or storage class 2 | gets(buf); // no bound | ^~~~ /tmp/tmpexg3zl04.c:2:1: error: type defaults to ‘int’ in declaration of ‘gets’ [-Wimplicit-int] /tmp/tmpexg3zl04.c:2:1: error: parameter names (without types) in function declar - SCP-000478: secure_code [C] /tmp/tmp8b0ap4xl.c:2:1: error: expected identifier or ‘(’ before ‘if’ 2 | if (!fgets(buf, sizeof buf, stdin)) return; // bounded | ^~ - SCP-000274: secure_code [C++] /tmp/tmpp3yxtas1.cpp:1:6: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type 1 | std::unique_ptr leak() { | ^~~~~~~~~~ /tmp/tmpp3yxtas1.cpp:1:1: note: ‘std::unique_ptr’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ +++ - SCP-000199: vulnerable_code [Rust] error[E0425]: cannot find type `Q` in this scope --> /tmp/tmp3y9k6pay.rs:1:27 | 1 | async fn go(q: web::Query) -> impl Responder { | ^ not found in this scope | help: you might be missing a type parameter | 1 | async fn go(q: web::Query) -> impl Responder - SCP-000199: secure_code [Rust] error[E0425]: cannot find type `Q` in this scope --> /tmp/tmpztoqhwc3.rs:1:27 | 1 | async fn go(q: web::Query) -> impl Responder { | ^ not found in this scope | help: you might be missing a type parameter | 1 | async fn go(q: web::Query) -> impl Responder - SCP-000376: vulnerable_code [Rust] error: expected item, found keyword `unsafe` --> /tmp/tmpkv9ebd0e.rs:1:1 | 1 | unsafe { let v = *ptr; } // Vulnerable: unchecked raw ptr\ | ^^^^^^ expected item | = note: for a full list of items that can appear in modules, see error: abort - SCP-000376: secure_code [Rust] error: expected item, found keyword `if` --> /tmp/tmpb06kedrk.rs:1:1 | 1 | if let Some(v) = ptr.as_ref() { /* use v */ } // Secure: safe wrapper\ | ^^ expected item | = note: for a full list of items that can appear in modules, see error: a - SCP-000474: vulnerable_code [Java] /tmp/tmpbq63b459.java:1: error: compact source file does not have main method in the form of void main() or void main(String[] args) int otp = (int)(Math.random() * 1000000); ^ 1 error - SCP-000474: secure_code [Java] /tmp/tmpi6_z8any.java:1: error: compact source file does not have main method in the form of void main() or void main(String[] args) int otp = new SecureRandom().nextInt(1000000); ^ 1 error - SCP-000169: vulnerable_code [Rust] error[E0425]: cannot find type `Db` in this scope --> /tmp/tmplqj46pg5.rs:1:52 | 1 | async fn get(p: web::Path, data: web::Data) -> impl Responder { | ^^ not found in this scope | help: you might be missing a type parameter | 1 - SCP-000169: secure_code [Rust] error[E0425]: cannot find type `AuthUser` in this scope --> /tmp/tmpfk0ob3jh.rs:1:17 | 1 | async fn get(u: AuthUser, p: web::Path, data: web::Data) -> impl Responder { | ^^^^^^^^ not found in this scope error[E0425]: cannot find type `Db` in this scope --> /tmp/tmp - SCP-000105: vulnerable_code [C] /tmp/tmppgmsppud.c:1:18: error: unknown type name ‘uint8_t’ 1 | void flash(const uint8_t *img, size_t len) { | ^~~~~~~ /tmp/tmppgmsppud.c:1:1: note: ‘uint8_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ +++ |+#include ’; this is probably fixable by adding ‘#include ’ +++ |+#include /tmp/tmpv0s9kgks.rs:1:30 | 1 | async fn parse(q: web::Query) -> impl Responder { | ^^^ not found in this scope | help: you might be missing a type parameter | 1 | async fn parse(q: web::Query) - SCP-000122: secure_code [Rust] error[E0425]: cannot find type `Req` in this scope --> /tmp/tmpgwf8kvpy.rs:1:30 | 1 | async fn parse(q: web::Query) -> impl Responder { | ^^^ not found in this scope | help: you might be missing a type parameter | 1 | async fn parse(q: web::Query) - SCP-000148: vulnerable_code [C++] /tmp/tmp7hatbvbn.cpp:1:20: error: ‘malloc’ was not declared in this scope 1 | char *buf = (char*)malloc(64); | ^~~~~~ /tmp/tmp7hatbvbn.cpp:1:1: note: ‘malloc’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ +++ |+#include buf(64); // Secure: RAII, no manual free | ^~~~~~ /tmp/tmpufj7imx9.cpp:1:1: note: ‘std::vector’ is defined in header ‘’; this is probably fixable by adding ‘#inclu - SCP-000236: vulnerable_code [Java] /tmp/tmppsv4bxh2.java:1: error: compact source file does not have main method in the form of void main() or void main(String[] args) private static final String KEY = "sk_live_1a2b3c4d"; // Vulnerable ^ 1 error - SCP-000236: secure_code [Java] /tmp/tmp3r27god0.java:1: error: cannot find symbol @Value("${PAYMENT_API_KEY}") // Secure: from env/secret ^ symbol: class Value location: class tmp3r27god0 /tmp/tmp3r27god0.java:1: error: compact source file does not have main method in the form of void main() or void main(String[] args) @V - SCP-000364: secure_code [PHP] bracket mismatch - SCP-000453: vulnerable_code [Rust] error: expected one of `!` or `::`, found `(` --> /tmp/tmprj09uhea.rs:1:14 | 1 | Schema::build(Query, EmptyMutation, EmptySubscription).finish() | ^ expected one of `!` or `::` error: aborting due to 1 previous error - SCP-000453: secure_code [Rust] error: expected item, found keyword `let` --> /tmp/tmp_b6qr58u.rs:1:1 | 1 | let schema = Schema::build(...).finish(); | ^^^ | | | `let` cannot be used for global variables | help: consider using `static` or `const` instead of `let` | = note: for a full list of items that can appear in - SCP-000307: vulnerable_code [Go] /tmp/tmpiixaxb2k.go:1:1: expected 'package', found out - SCP-000307: secure_code [Go] /tmp/tmp4a489kg8.go:1:1: expected 'package', found 'if' - SCP-000258: vulnerable_code [C] /tmp/tmpt3biwww2.c: In function ‘proc’: /tmp/tmpt3biwww2.c:2:12: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] 2 | int *p = malloc(8); *p = 1; | ^~~~~~ /tmp/tmpt3biwww2.c:1:1: note: include ‘’ or provide a declaration of ‘malloc’ - SCP-000258: secure_code [C] /tmp/tmp6t4g7qak.c: In function ‘proc’: /tmp/tmp6t4g7qak.c:2:12: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] 2 | int *p = malloc(8); *p = 1; | ^~~~~~ /tmp/tmp6t4g7qak.c:1:1: note: include ‘’ or provide a declaration of ‘malloc’ - SCP-000231: vulnerable_code [Java] /tmp/tmp05usdk0u.java:2: error: cannot find symbol PreparedStatement ps = c.prepareStatement(sql); // Vulnerable ^ symbol: class PreparedStatement location: class tmp05usdk0u /tmp/tmp05usdk0u.java:1: error: cannot find symbol String sql = "SELECT * FROM u WHERE name='" + name + "'"; - SCP-000231: secure_code [Java] /tmp/tmpyfz9qlnu.java:3: error: class, interface, annotation type, enum, record, method or field expected ps.setString(1, name); // Secure ^ 1 error - SCP-000018: vulnerable_code [JavaScript] /tmp/tmp7frlcz2q.js:1 @Controller('transfer') ^ SyntaxError: Invalid or unexpected token at wrapSafe (node:internal/modules/cjs/loader:1637:18) at checkSyntax (node:internal/main/check_syntax:78:3) Node.js v22.22.1 - SCP-000018: secure_code [JavaScript] /tmp/tmp81tned8y.js:1 @Controller('transfer') ^ SyntaxError: Invalid or unexpected token at wrapSafe (node:internal/modules/cjs/loader:1637:18) at checkSyntax (node:internal/main/check_syntax:78:3) Node.js v22.22.1 - SCP-000262: vulnerable_code [C] /tmp/tmpjjzuo3t3.c: In function ‘save’: /tmp/tmpjjzuo3t3.c:2:12: error: implicit declaration of function ‘open’ [-Wimplicit-function-declaration] 2 | int fd = open("/tmp/data.txt", O_WRONLY|O_CREAT, 0644); // Vulnerable: predictable | ^~~~ /tmp/tmpjjzuo3t3.c:2:34: error: ‘O_W - SCP-000262: secure_code [C] /tmp/tmp_4mfee7j.c: In function ‘save’: /tmp/tmp_4mfee7j.c:3:12: error: implicit declaration of function ‘mkstemp’ [-Wimplicit-function-declaration] 3 | int fd = mkstemp(tmpl); // Secure: unpredictable | ^~~~~~~ /tmp/tmp_4mfee7j.c:4:3: error: implicit declaration of function - SCP-000372: vulnerable_code [Rust] error: expected item, found `.` --> /tmp/tmp9ly6h7n1.rs:1:1 | 1 | .route("/login", web::post().to(login)) // Vulnerable: no throttle\ | ^ expected item | = note: for a full list of items that can appear in modules, see error: aborting due t - SCP-000372: secure_code [Rust] error: expected item, found `.` --> /tmp/tmp_f_ef3zl.rs:1:1 | 1 | .route("/login", web::post().to(login)).wrap(RateLimiter::new(5, 60)) // Secure\ | ^ expected item | = note: for a full list of items that can appear in modules, see error: a - SCP-000264: vulnerable_code [C] /tmp/tmplr2nz_y0.c:1:11: error: unknown type name ‘User’ 1 | void show(User *u) { | ^~~~ - SCP-000264: secure_code [C] /tmp/tmp1s013vys.c:1:11: error: unknown type name ‘User’ 1 | void show(User *u) { | ^~~~ - SCP-000321: vulnerable_code [Go] /tmp/tmpwq9ougj7.go:1:1: expected 'package', found acc - SCP-000321: secure_code [Go] /tmp/tmpdvfvgabs.go:1:1: expected 'package', found acc - SCP-000142: vulnerable_code [Rust] error[E0425]: cannot find type `Q` in this scope --> /tmp/tmp2o3n7dwy.rs:1:29 | 1 | async fn find(q: web::Query) -> impl Responder { | ^ not found in this scope | help: you might be missing a type parameter | 1 | async fn find(q: web::Query) -> impl Resp - SCP-000142: secure_code [Rust] error[E0425]: cannot find type `Q` in this scope --> /tmp/tmplvec6qiq.rs:1:29 | 1 | async fn find(q: web::Query) -> impl Responder { | ^ not found in this scope | help: you might be missing a type parameter | 1 | async fn find(q: web::Query) -> impl Resp - SCP-000385: vulnerable_code [Rust] error: expected one of `!` or `::`, found `(` --> /tmp/tmp81o857sd.rs:1:34 | 1 | HttpResponse::InternalServerError().body(format!("err: {}", e)) // Vulnerable: leaks\ | ^ expected one of `!` or `::` error: aborting due to 1 previous error - SCP-000385: secure_code [Rust] error: unknown start of token: \ --> /tmp/tmpf1ihk54a.rs:1:27 | 1 | log::error!("err: {}", e);\nHttpResponse::InternalServerError().body("internal_error") // Secure\ | ^ error: expected one of `!` or `::`, found `(` --> /tmp/tmpf1ihk54a.rs:1:62 | 1 | log::error!(" - SCP-000242: vulnerable_code [Ruby] ruby: /tmp/tmpty3jne1_.rb:2: syntax error, unexpected local variable or method, expecting `end' or dummy end (SyntaxError) ``ping -c1 #{host}`` # Vulnerable:... ^~~~ - SCP-000235: vulnerable_code [Java] /tmp/tmp9mk093qg.java:2: error: cannot find symbol public void delete(@PathVariable Long id) { // Vulnerable: no role check ^ symbol: class PathVariable location: class tmp9mk093qg /tmp/tmp9mk093qg.java:1: error: cannot find symbol @DeleteMapping("/admin/user/{id}") ^ s - SCP-000235: secure_code [Java] /tmp/tmpjfbb1r5c.java:3: error: cannot find symbol public void delete(@PathVariable Long id) { ^ symbol: class PathVariable location: class tmpjfbb1r5c /tmp/tmpjfbb1r5c.java:1: error: cannot find symbol @PreAuthorize("hasRole('ADMIN')") // Secure ^ symbol: class PreAu - SCP-000103: vulnerable_code [C] /tmp/tmp_a7cl01n.c: In function ‘on_message’: /tmp/tmp_a7cl01n.c:3:9: error: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration] 3 | if (strcmp(topic, "device/cmd") == 0) actuate(payload); | ^~~~~~ /tmp/tmp_a7cl01n.c:1:1: note: include ‘’ or pr - SCP-000103: secure_code [C] /tmp/tmpt0bzzynu.c:1:45: error: unknown type name ‘mqtt_conn’ 1 | void on_message(char *topic, char *payload, mqtt_conn *c) { | ^~~~~~~~~ - SCP-000472: vulnerable_code [Ruby] ruby: /tmp/tmps29cer22.rb:1: unterminated regexp meets end of file (SyntaxError) ...e(params[:user]) // role bound ... ^ - SCP-000259: vulnerable_code [C] /tmp/tmpmbd0zfp1.c:1:12: error: unknown type name ‘size_t’ 1 | void *make(size_t n, size_t sz) { | ^~~~~~ /tmp/tmpmbd0zfp1.c:1:1: note: ‘size_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ +++ |+#include 1 | void * - SCP-000259: secure_code [C] /tmp/tmpx1esut0c.c:1:12: error: unknown type name ‘size_t’ 1 | void *make(size_t n, size_t sz) { | ^~~~~~ /tmp/tmpx1esut0c.c:1:1: note: ‘size_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ +++ |+#include 1 | void * - SCP-000158: vulnerable_code [C] /tmp/tmpdt2ocuxv.c:1:11: error: unknown type name ‘size_t’ 1 | void *buf(size_t n) { | ^~~~~~ /tmp/tmpdt2ocuxv.c:1:1: note: ‘size_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ +++ |+#include 1 | void *buf(size_t n) - SCP-000158: secure_code [C] /tmp/tmp2zz6v5gz.c:1:11: error: unknown type name ‘size_t’ 1 | void *buf(size_t n) { | ^~~~~~ /tmp/tmp2zz6v5gz.c:1:1: note: ‘size_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ +++ |+#include 1 | void *buf(size_t n) - SCP-000010: vulnerable_code [Java] /tmp/tmp3rwh1ah3.java:1: error: cannot find symbol public Claims parseToken(String token) { ^ symbol: class Claims location: class tmp3rwh1ah3 /tmp/tmp3rwh1ah3.java:3: error: cannot find symbol return Jwts.parser() ^ symbol: variable Jwts location: class tmp3rwh1ah3 - SCP-000010: secure_code [Java] /tmp/tmp9yd0y5r3.java:1: error: cannot find symbol public Claims parseToken(String token, String secret) { ^ symbol: class Claims location: class tmp9yd0y5r3 /tmp/tmp9yd0y5r3.java:3: error: cannot find symbol return Jwts.parserBuilder() ^ symbol: variable Jwts locat - SCP-000261: vulnerable_code [C] /tmp/tmpllgsfsv0.c: In function ‘run’: /tmp/tmpllgsfsv0.c:3:3: error: implicit declaration of function ‘sprintf’ [-Wimplicit-function-declaration] 3 | sprintf(cmd, "convert %s out.png", f); | ^~~~~~~ /tmp/tmpllgsfsv0.c:1:1: note: include ‘’ or provide a declaration of ‘sprintf - SCP-000261: secure_code [C] /tmp/tmpp0xfcf51.c: In function ‘run’: /tmp/tmpp0xfcf51.c:2:7: error: implicit declaration of function ‘strpbrk’ [-Wimplicit-function-declaration] 2 | if (strpbrk(f, ";|&$'"") != NULL) return; // Secure: validate | ^~~~~~~ /tmp/tmpp0xfcf51.c:1:1: note: include ‘’ or prov - SCP-000282: vulnerable_code [C++] /tmp/tmp40czi2gf.cpp:1:6: error: variable or field ‘save’ declared void 1 | void save(std::string d) { | ^~~~ /tmp/tmp40czi2gf.cpp:1:16: error: ‘string’ is not a member of ‘std’ 1 | void save(std::string d) { | ^~~~~~ /tmp/tmp40czi2gf.cpp:1:1: note: ‘std::stri - SCP-000282: secure_code [C++] /tmp/tmpoa0gges_.cpp: In function ‘void save(std::string)’: /tmp/tmpoa0gges_.cpp:4:20: error: variable ‘std::ofstream f’ has initializer but incomplete type 4 | std::ofstream f(p); f << d; | ^ /tmp/tmpoa0gges_.cpp:2:1: note: ‘std::ofstream’ is defined in header ‘’ or provide a declaration - SCP-000233: vulnerable_code [Java] /tmp/tmp2ihkg87f.java:1: error: cannot find symbol XMLDecoder d = new XMLDecoder(inputStream); ^ symbol: class XMLDecoder location: class tmp2ihkg87f /tmp/tmp2ihkg87f.java:1: error: cannot find symbol XMLDecoder d = new XMLDecoder(inputStream); ^ symbol: class XMLDecoder - SCP-000233: secure_code [Java] /tmp/tmpcg7ny_of.java:1: error: cannot find symbol JAXBContext ctx = JAXBContext.newInstance(Dto.class); ^ symbol: class JAXBContext location: class tmpcg7ny_of /tmp/tmpcg7ny_of.java:2: error: cannot find symbol Dto o = (Dto) ctx.createUnmarshaller().unmarshal(safeSource); // Secure ^ symbo - SCP-000479: vulnerable_code [Go] /tmp/tmpp77yn512.go:1:1: expected 'package', found c - SCP-000479: secure_code [Go] /tmp/tmpggatx7_1.go:2:1: expected 'package', found c - SCP-000281: secure_code [C++] /tmp/tmpuit2x9d1.cpp: In function ‘void run()’: /tmp/tmpuit2x9d1.cpp:2:17: error: ‘make_unique’ is not a member of ‘std’ 2 | auto p = std::make_unique(1); // Secure: RAII | ^~~~~~~~~~~ /tmp/tmpuit2x9d1.cpp:1:1: note: ‘std::make_unique’ is defined in header ‘ - SCP-000316: vulnerable_code [Go] /tmp/tmp97jza1o1.go:1:1: expected 'package', found 'type' - SCP-000316: secure_code [Go] /tmp/tmpf3mi_gkm.go:1:1: expected 'package', found 'type' - SCP-000057: vulnerable_code [Ruby] ruby: /tmp/tmpnya6m969.rb:1: syntax error, unexpected '<' (SyntaxError) ^ - SCP-000057: secure_code [Ruby] ruby: /tmp/tmpgwc0x254.rb:1: syntax error, unexpected '<' (SyntaxError) ^ - SCP-000071: vulnerable_code [C++] /tmp/tmp0f4qakck.cpp:1:10: fatal error: pugixml.hpp: No such file or directory 1 | #include | ^~~~~~~~~~~~~ compilation terminated. - SCP-000071: secure_code [C++] /tmp/tmpo37nt3v2.cpp:1:10: fatal error: pugixml.hpp: No such file or directory 1 | #include | ^~~~~~~~~~~~~ compilation terminated. - SCP-000373: vulnerable_code [Rust] error: expected item, found keyword `let` --> /tmp/tmp3_aid_ot.rs:1:1 | 1 | let token = decode::(&t, &key, &Validation::new(Algorithm::HS256)); // Vulnerable if alg not pinned strictly\ | ^^^ | | | `let` cannot be used for global variables | help: consider using `static` or `cons - SCP-000373: secure_code [Rust] error: unknown start of token: \ --> /tmp/tmpfpxexuja.rs:1:47 | 1 | let mut v = Validation::new(Algorithm::HS256);\nv.validate_nbf = true;\nlet token = decode::(&t, &key, &v); // Secure: strict\ | ^ error: unknown start of token: \ --> /t - SCP-000309: vulnerable_code [Go] /tmp/tmpidicavl0.go:1:1: expected 'package', found r - SCP-000309: secure_code [Go] /tmp/tmpokw4l71h.go:1:1: expected 'package', found r - SCP-000310: vulnerable_code [Go] /tmp/tmpblf1ljey.go:1:1: expected 'package', found 'const' - SCP-000310: secure_code [Go] /tmp/tmpunbfegjf.go:1:1: expected 'package', found 'var' - SCP-000455: vulnerable_code [Go] /tmp/tmpw_65hwbd.go:1:1: expected 'package', found s - SCP-000455: secure_code [Go] /tmp/tmpw3kajdel.go:1:1: expected 'package', found s - SCP-000266: vulnerable_code [C] /tmp/tmp7g41np0_.c: In function ‘read_line’: /tmp/tmp7g41np0_.c:3:3: error: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] 3 | gets(buf); // Vulnerable: no bound | ^~~~ - SCP-000266: secure_code [C] /tmp/tmpwvlmnun_.c: In function ‘read_line’: /tmp/tmpwvlmnun_.c:3:7: error: implicit declaration of function ‘fgets’ [-Wimplicit-function-declaration] 3 | if (fgets(buf, sizeof buf, stdin) == NULL) return; // Secure: bounded | ^~~~~ /tmp/tmpwvlmnun_.c:3:30: error: ‘stdin’ undeclar - SCP-000375: vulnerable_code [Rust] error: expected one of `!` or `::`, found `(` --> /tmp/tmps51hch1i.rs:1:20 | 1 | HttpResponse::Found().insert_header(("Location", url)).finish() // Vulnerable\ | ^ expected one of `!` or `::` error: aborting due to 1 previous error - SCP-000375: secure_code [Rust] error: expected item, found keyword `if` --> /tmp/tmp1cbw341q.rs:1:1 | 1 | if !(url.starts_with("/") && !url.starts_with("//")) { url = "/".into(); } // Secure\nHttpResponse::Found().insert_header(("Location... | ^^ expected item | = note: for a full list of items that can appear in module - SCP-000367: vulnerable_code [Rust] error: expected item, found keyword `let` --> /tmp/tmppzyqvvnj.rs:1:1 | 1 | let out = Command::new("sh").arg("-c").arg(format!("ping -c1 {}", host)).output(); // Vulnerable\ | ^^^ | | | `let` cannot be used for global variables | help: consider using `static` or `const` instead of `let` - SCP-000367: secure_code [Rust] error: unknown start of token: \ --> /tmp/tmpsnk15uwn.rs:1:70 | 1 | if !valid_host(&host) { return HttpResponse::BadRequest().finish(); }\nlet out = Command::new("ping").arg("-c1").arg(&host).output();... | ^ error: expected - SCP-000109: vulnerable_code [Python] invalid syntax (, line 1) - SCP-000109: secure_code [Python] invalid syntax (, line 1) - SCP-000206: vulnerable_code [Java] /tmp/tmpn_w9lw_6.java:1: error: class, interface, annotation type, enum, record, method or field expected management.endpoints.web.exposure.include=* # Vulnerable: no auth ^ /tmp/tmpn_w9lw_6.java:1: error: illegal character: '#' management.endpoints.web.exposure.include=* # Vulnerable: no auth - SCP-000206: secure_code [Java] /tmp/tmpsi3uq_9u.java:1: error: class, interface, annotation type, enum, record, method or field expected management.endpoints.web.exposure.include=health,info ^ /tmp/tmpsi3uq_9u.java:3: error: unclosed comment spring.security.include ... /actuator/** requires ADMIN - SCP-000448: vulnerable_code [Rust] error: expected item, found keyword `let` --> /tmp/tmpg1yilkp_.rs:1:1 | 1 | let v: MyStruct = ron::de::from_bytes(&body)?; | ^^^ | | | `let` cannot be used for global variables | help: consider using `static` or `const` instead of `let` | = note: for a full list of items that can appe - SCP-000448: secure_code [Rust] error: expected item, found keyword `let` --> /tmp/tmphebe3raa.rs:1:1 | 1 | let v: MyStruct = serde_json::from_slice(&body)?; // strict schema | ^^^ | | | `let` cannot be used for global variables | help: consider using `static` or `const` instead of `let` | = note: for a full list o - SCP-000247: vulnerable_code [Ruby] ruby: /tmp/tmpdgnwe0m8.rb:1: syntax error, unexpected ':', expecting end-of-input (SyntaxError) production: ^ - SCP-000247: secure_code [Ruby] ruby: /tmp/tmpo790bhse.rb:1: syntax error, unexpected ':', expecting end-of-input (SyntaxError) production: ^ - SCP-000284: vulnerable_code [C++] /tmp/tmpwj52h_mn.cpp:1:6: error: variable or field ‘show’ declared void 1 | void show(User* u) { | ^~~~ /tmp/tmpwj52h_mn.cpp:1:11: error: ‘User’ was not declared in this scope 1 | void show(User* u) { | ^~~~ /tmp/tmpwj52h_mn.cpp:1:17: error: ‘u’ was not declared in - SCP-000284: secure_code [C++] /tmp/tmp64f9zscf.cpp:1:6: error: variable or field ‘show’ declared void 1 | void show(User* u) { | ^~~~ /tmp/tmp64f9zscf.cpp:1:11: error: ‘User’ was not declared in this scope 1 | void show(User* u) { | ^~~~ /tmp/tmp64f9zscf.cpp:1:17: error: ‘u’ was not declared in - SCP-000088: vulnerable_code [Java] /tmp/tmp1wj0tdge.java:1: error: compact source file does not have main method in the form of void main() or void main(String[] args) public BigDecimal interest(double principal, double rate) { ^ 1 error - SCP-000088: secure_code [Java] /tmp/tmp6jkgmuo3.java:1: error: compact source file does not have main method in the form of void main() or void main(String[] args) public BigDecimal interest(BigDecimal principal, BigDecimal rate) { ^ 1 error - SCP-000037: vulnerable_code [Rust] error[E0425]: cannot find type `Item` in this scope --> /tmp/tmpvotkby2a.rs:1:32 | 1 | async fn create(req: web::Json) -> impl Responder { | ^^^^ not found in this scope | help: you might be missing a type parameter | 1 | async fn create(req: web:: - SCP-000037: secure_code [Rust] error[E0433]: cannot find module or crate `serde_json` in this scope --> /tmp/tmpvvuyvqs3.rs:6:54 | 6 | HttpResponse::InternalServerError().json(serde_json::json!({"error":"internal"})) | ^^^^^^^^^^ use of unresolved module or unl - SCP-000108: vulnerable_code [C++] /tmp/tmp64q5ck48.cpp:1:32: error: ‘string’ in namespace ‘std’ does not name a type 1 | void send_telemetry(const std::string& data) { | ^~~~~~ /tmp/tmp64q5ck48.cpp:1:1: note: ‘std::string’ is defined in header ‘’; this is probably fixable by adding ‘# - SCP-000108: secure_code [C++] /tmp/tmp3lg_hadq.cpp:1:32: error: ‘string’ in namespace ‘std’ does not name a type 1 | void send_telemetry(const std::string& data) { | ^~~~~~ /tmp/tmp3lg_hadq.cpp:1:1: note: ‘std::string’ is defined in header ‘’; this is probably fixable by adding ‘# - SCP-000084: vulnerable_code [Go] /tmp/tmpplkr57cf.go:1:1: expected 'package', found s - SCP-000084: secure_code [Go] /tmp/tmp9ug_zbik.go:1:1: expected 'package', found s - SCP-000436: vulnerable_code [Go] /tmp/tmpqrbyl6ak.go:1:1: expected 'package', found acc - SCP-000436: secure_code [Go] /tmp/tmpb2nsgptk.go:1:1: expected 'package', found tx - SCP-000036: vulnerable_code [Rust] error[E0601]: `main` function not found in crate `tmpopdh7ub5` --> /tmp/tmpopdh7ub5.rs:10:2 | 10 | } | ^ consider adding a `main` function to `/tmp/tmpopdh7ub5.rs` error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0601`. - SCP-000036: secure_code [Rust] error[E0601]: `main` function not found in crate `tmp706tvl2l` --> /tmp/tmp706tvl2l.rs:9:2 | 9 | } | ^ consider adding a `main` function to `/tmp/tmp706tvl2l.rs` error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0601`. - SCP-000371: vulnerable_code [Rust] error: expected one of `!` or `::`, found `(` --> /tmp/tmp1lyvixs1.rs:1:17 | 1 | HttpResponse::Ok().content_type("text/html").body(format!("
{}
", comment)) // Vulnerable\ | ^ expected one of `!` or `::` error: aborting due to 1 previous error - SCP-000371: secure_code [Rust] error: expected item, found keyword `let` --> /tmp/tmpp23axbio.rs:1:1 | 1 | let esc = html_escape::encode_text(&comment); // Secure: escape\nHttpResponse::Ok().content_type("text/html").body(format!("
{}<... | ^^^ | | | `let` cannot be used for global variables | help: consider using - SCP-000306: vulnerable_code [Go] /tmp/tmphvxrsbfz.go:1:1: expected 'package', found q - SCP-000306: secure_code [Go] /tmp/tmp6jhwnzgx.go:1:1: expected 'package', found rows - SCP-000285: vulnerable_code [C++] /tmp/tmp6p2yuw1m.cpp:1:1: error: ‘ctx’ does not name a type 1 | ctx->set_verify_mode(boost::asio::ssl::verify_none); // Vulnerable | ^~~ - SCP-000285: secure_code [C++] /tmp/tmp2yq502re.cpp:1:1: error: ‘ctx’ does not name a type 1 | ctx->set_verify_mode(boost::asio::ssl::verify_peer); // Secure | ^~~ /tmp/tmp2yq502re.cpp:2:1: error: ‘ctx’ does not name a type 2 | ctx->set_default_verify_paths(); | ^~~ - SCP-000384: vulnerable_code [Rust] error: expected one of `!` or `::`, found `(` --> /tmp/tmp1vq2m8ke.rs:1:15 | 1 | std::fs::write(format!("/up/{}", fname), data)?; // Vulnerable: any type\ | ^ expected one of `!` or `::` error: aborting due to 1 previous error - SCP-000384: secure_code [Rust] error: expected item, found keyword `if` --> /tmp/tmpwayp928p.rs:1:1 | 1 | if ct != "image/png" && ct != "image/jpeg" { return Err(...); } // Secure\nlet name = format!("{}.png", Uuid::new_v4());\nstd::fs::w... | ^^ expected item | = note: for a full list of items that can appear in module - SCP-000136: vulnerable_code [Go] /tmp/tmpzuwco7xp.go:1:1: expected 'package', found c - SCP-000136: secure_code [Go] /tmp/tmpyq1y32cr.go:1:1: expected 'package', found c - SCP-000320: vulnerable_code [Go] /tmp/tmp45gah777.go:1:1: expected 'package', found typ - SCP-000320: secure_code [Go] /tmp/tmpkumje5s6.go:1:1: expected 'package', found ALLOWED - SCP-000184: vulnerable_code [C] /tmp/tmpcotlogwa.c:1:1: error: expected identifier or ‘(’ before ‘if’ 1 | if (access(path, W_OK) == 0) { // Vulnerable: TOCTOU | ^~ - SCP-000184: secure_code [C] /tmp/tmpez5k61xw.c:1:1: warning: data definition has no type or storage class 1 | fd = open(path, O_WRONLY); // Secure: open, then fstat on fd | ^~ /tmp/tmpez5k61xw.c:1:1: error: type defaults to ‘int’ in declaration of ‘fd’ [-Wimplicit-int] /tmp/tmpez5k61xw.c:1:6: error: implicit declara - SCP-000050: vulnerable_code [Rust] error[E0405]: cannot find trait `Responder` in this scope --> /tmp/tmpz2xbxdhq.rs:1:49 | 1 | async fn upload(mut body: web::Payload) -> impl Responder { | ^^^^^^^^^ not found in this scope error[E0601]: `main` function not found in crate `tmpz2xb - SCP-000050: secure_code [Rust] error[E0405]: cannot find trait `Responder` in this scope --> /tmp/tmpzz_q0j_a.rs:1:49 | 1 | async fn upload(mut body: web::Payload) -> impl Responder { | ^^^^^^^^^ not found in this scope error[E0601]: `main` function not found in crate `tmpzz_q - SCP-000461: vulnerable_code [Go] /tmp/tmpxdcucvue.go:1:1: expected 'package', found resp - SCP-000461: secure_code [Go] /tmp/tmpqichmtgj.go:1:1: expected 'package', found u - SCP-000471: vulnerable_code [Go] /tmp/tmp_wo34r96.go:1:1: expected 'package', found 'var' - SCP-000471: secure_code [Go] /tmp/tmp78i_8hux.go:1:1: expected 'package', found 'var' - SCP-000368: vulnerable_code [Rust] error: expected item, found keyword `let` --> /tmp/tmpjyotl2_p.rs:1:1 | 1 | let path = format!("/data/{}", name); // Vulnerable: traversal\nactix_files::NamedFile::open(path)?.into_response(&req)\ | ^^^ | | | `let` cannot be used for global variables | help: consider using `static` or `c - SCP-000368: secure_code [Rust] error: unknown start of token: \ --> /tmp/tmp8lf_owkh.rs:1:53 | 1 | let name = Path::new(&name).file_name().ok_or(404)?;\nlet path = Path::new("/data").join(name); // Secure: basename\nactix_files::Na... | ^ error: expected item, found keywo - SCP-000312: vulnerable_code [Go] /tmp/tmpzy70yw1j.go:1:1: expected 'package', found r - SCP-000312: secure_code [Go] /tmp/tmp2bc935uz.go:1:1: expected 'package', found r - SCP-000240: vulnerable_code [Java] /tmp/tmpvmzej84x.java:1: error: class, interface, annotation type, enum, record, method or field expected config.setAllowedOriginPatterns(Arrays.asList("*")); // Vulnerable ^ /tmp/tmpvmzej84x.java:2: error: class, interface, annotation type, enum, record, method or field expected config.setAllowCre - SCP-000240: secure_code [Java] /tmp/tmpnikvryl9.java:1: error: class, interface, annotation type, enum, record, method or field expected config.setAllowedOrigins(Arrays.asList("https://app.example.com")); // Secure ^ /tmp/tmpnikvryl9.java:2: error: class, interface, annotation type, enum, record, method or field expected config. - SCP-000370: vulnerable_code [Rust] error[E0601]: `main` function not found in crate `tmpwg9sa2ie` --> /tmp/tmpwg9sa2ie.rs:1:42 | 1 | const API_KEY: &str = "sk_live_7b6a5948"; // Vulnerable\ | ^ consider adding a `main` function to `/tmp/tmpwg9sa2ie.rs` error: aborting due to 1 previous - SCP-000370: secure_code [Rust] error: expected item, found keyword `let` --> /tmp/tmph3scz3o0.rs:1:1 | 1 | let api_key = std::env::var("API_KEY").expect("API_KEY"); // Secure: env\ | ^^^ | | | `let` cannot be used for global variables | help: consider using `static` or `const` instead of `let` | = note: for a full - SCP-000377: vulnerable_code [Rust] error: expected item, found keyword `let` --> /tmp/tmp3x02a8lp.rs:1:1 | 1 | let tok = rand::random::().to_string(); // Vulnerable if thread_rng weak\ | ^^^ | | | `let` cannot be used for global variables | help: consider using `static` or `const` instead of `let` | = note: for a - SCP-000377: secure_code [Rust] error: unknown start of token: \ --> /tmp/tmp6q8hyj6b.rs:1:23 | 1 | use rand::rngs::OsRng;\nlet mut buf = [0u8; 32]; OsRng.fill_bytes(&mut buf); // Secure: OS CSPRNG\ | ^ error: expected one of `!` or `::`, found keyword `mut` --> /tmp/tmp6q8hyj6b.rs:1:29 | 1 | use ra - SCP-000102: secure_code [C] /tmp/tmpwvrlaw1v.c:3:1: error: expected identifier or ‘(’ before ‘if’ 3 | if (load_credentials(ssid, psk) != 0) { | ^~ - SCP-000319: vulnerable_code [Go] /tmp/tmp99kpx9qq.go:1:1: expected 'package', found 'var' - SCP-000319: secure_code [Go] /tmp/tmpdjyanx97.go:1:1: expected 'package', found 'var' - SCP-000269: vulnerable_code [C] /tmp/tmplbyuayry.c:1:1: error: expected identifier or ‘(’ before ‘if’ 1 | if (access(path, R_OK) == 0) { fd = open(path, O_RDONLY); } // Vulnerable: TOCTOU | ^~ - SCP-000269: secure_code [C] /tmp/tmp27mgs9sd.c:1:1: warning: data definition has no type or storage class 1 | fd = open(path, O_RDONLY); | ^~ /tmp/tmp27mgs9sd.c:1:1: error: type defaults to ‘int’ in declaration of ‘fd’ [-Wimplicit-int] /tmp/tmp27mgs9sd.c:1:6: error: implicit declaration of function ‘open’ [-Wimplicit - SCP-000112: vulnerable_code [Java] /tmp/tmp9789e1zl.java:1: error: cannot find symbol public Claims parse(String t) { ^ symbol: class Claims location: class tmp9789e1zl /tmp/tmp9789e1zl.java:3: error: cannot find symbol return Jwts.parser().parseClaimsJwt(t).getBody(); ^ symbol: variable Jwts location: c - SCP-000112: secure_code [Java] /tmp/tmphg2_k6dl.java:1: error: cannot find symbol public Claims parse(String t, Key k) { ^ symbol: class Claims location: class tmphg2_k6dl /tmp/tmphg2_k6dl.java:3: error: cannot find symbol return Jwts.parserBuilder().setSigningKey(k) ^ symbol: variable Jwts location: - SCP-000313: vulnerable_code [Go] /tmp/tmpkr_y2mp8.go:1:1: expected 'package', found token - SCP-000313: secure_code [Go] /tmp/tmpluhnqrz8.go:1:1: expected 'package', found token - SCP-000290: vulnerable_code [C++] /tmp/tmpdh0i_3fc.cpp:1:6: error: ‘istringstream’ in namespace ‘std’ does not name a type 1 | std::istringstream iss(data); | ^~~~~~~~~~~~~ /tmp/tmpdh0i_3fc.cpp:1:1: note: ‘std::istringstream’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ + - SCP-000290: secure_code [C++] /tmp/tmp1asrytdg.cpp:2:30: error: ‘data’ was not declared in this scope 2 | auto obj = parse_json_strict(data); // Secure | ^~~~ /tmp/tmp1asrytdg.cpp:2:12: error: ‘parse_json_strict’ was not declared in this scope 2 | auto obj = parse_json_strict(data); / - SCP-000467: vulnerable_code [Go] /tmp/tmpe0ufqkej.go:1:1: expected 'package', found session - SCP-000467: secure_code [Go] /tmp/tmpi1wobevj.go:1:1: expected 'package', found old - SCP-000477: vulnerable_code [Rust] error: expected item, found `.` --> /tmp/tmpo6u2jjl4.rs:1:1 | 1 | .route("/login", web::post().to(login)) | ^ expected item | = note: for a full list of items that can appear in modules, see error: aborting due to 1 previous error - SCP-000477: secure_code [Rust] error: expected item, found `.` --> /tmp/tmph5b9ciue.rs:1:1 | 1 | .route("/login", web::post().to(login)) | ^ expected item | = note: for a full list of items that can appear in modules, see error: aborting due to 1 previous error - SCP-000013: vulnerable_code [Java] /tmp/tmpoq2blj8h.java:3: error: cannot find symbol log.info("Login attempt user=" + user + " ip=" + ip); ^ symbol: variable log location: class tmpoq2blj8h /tmp/tmpoq2blj8h.java:1: error: compact source file does not have main method in the form of void main() or void main(String[] arg - SCP-000013: secure_code [Java] /tmp/tmpquy19gt1.java:5: error: cannot find symbol log.info("Login attempt", kv("user", safeUser), kv("ip", safeIp)); ^ symbol: variable log location: class tmpquy19gt1 /tmp/tmpquy19gt1.java:5: error: cannot find symbol log.info("Login attempt", kv("user", safeUser), kv("ip", safeI - SCP-000265: secure_code [C] /tmp/tmp_sw3dxo8.c: In function ‘get_pw’: /tmp/tmp_sw3dxo8.c:1:25: error: implicit declaration of function ‘getenv’ [-Wimplicit-function-declaration] 1 | char *get_pw() { return getenv("APP_PW"); } // Secure: from env | ^~~~~~ /tmp/tmp_sw3dxo8.c:1:1: note: ‘getenv’ - SCP-000383: vulnerable_code [Rust] error: expected one of `!` or `::`, found `.` --> /tmp/tmp3iiec4q1.rs:1:4 | 1 | acc.balance += req.amount; // Vulnerable: negative allowed\ | ^ expected one of `!` or `::` error: aborting due to 1 previous error - SCP-000383: secure_code [Rust] error: expected item, found keyword `if` --> /tmp/tmp5vyjo8em.rs:1:1 | 1 | if req.amount <= 0.0 || req.amount > 1_000_000.0 { return Err(...); } // Secure\nacc.balance += req.amount;\ | ^^ expected item | = note: for a full list of items that can appear in modules, see /tmp/tmpsotnmsgj.rs:5:5 | 5 | actix_files::NamedFile::open(path) | ^^^^^^^^^^^ use of unresolved module or unlinked crate `actix_files` | = help: you might be missing a crate named `actix_files` error[E0425]: - SCP-000035: secure_code [Rust] error[E0433]: cannot find module or crate `actix_files` in this scope --> /tmp/tmp4u72q5gc.rs:8:5 | 8 | actix_files::NamedFile::open(target) | ^^^^^^^^^^^ use of unresolved module or unlinked crate `actix_files` | = help: you might be missing a crate named `actix_files` error[E0425 - SCP-000188: vulnerable_code [Java] /tmp/tmp9r1m_wfo.java:1: error: cannot find symbol @Value("sk_live_abc123") // Vulnerable: hardcoded ^ symbol: class Value location: class tmp9r1m_wfo /tmp/tmp9r1m_wfo.java:1: error: compact source file does not have main method in the form of void main() or void main(String[] args) @Value(" - SCP-000188: secure_code [Java] /tmp/tmp6si_wg_i.java:1: error: cannot find symbol @Value("${GATEWAY_KEY}") // Secure: from env/secret ^ symbol: class Value location: class tmp6si_wg_i /tmp/tmp6si_wg_i.java:1: error: compact source file does not have main method in the form of void main() or void main(String[] args) @Value - SCP-000315: vulnerable_code [Go] /tmp/tmp2bimalhl.go:1:1: expected 'package', found c - SCP-000315: secure_code [Go] /tmp/tmp0zir67og.go:1:1: expected 'package', found u - SCP-000107: vulnerable_code [C] /tmp/tmplbyo2uj4.c: In function ‘parse_header’: /tmp/tmplbyo2uj4.c:4:5: error: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration] 4 | strcpy(val, strchr(line, ':') + 1); | ^~~~~~ /tmp/tmplbyo2uj4.c:1:1: note: include ‘’ or provide a declaration of - SCP-000107: secure_code [C] /tmp/tmpykbhzg5m.c: In function ‘parse_header’: /tmp/tmpykbhzg5m.c:3:15: error: implicit declaration of function ‘strchr’ [-Wimplicit-function-declaration] 3 | char *v = strchr(line, ':') + 1; | ^~~~~~ /tmp/tmpykbhzg5m.c:1:1: note: include ‘’ or provide a declar - SCP-000140: vulnerable_code [Java] /tmp/tmp9htcgagk.java:1: error: class, interface, annotation type, enum, record, method or field expected ^ 1 error - SCP-000140: secure_code [Java] /tmp/tmpff1pfx2a.java:1: error: class, interface, annotation type, enum, record, method or field expected ^ 1 error - SCP-000318: vulnerable_code [Go] /tmp/tmpgpt6c0_c.go:1:1: expected 'package', found c - SCP-000318: secure_code [Go] /tmp/tmp427oa04n.go:1:1: expected 'package', found c - SCP-000268: vulnerable_code [C] /tmp/tmprs8jvizu.c:1:11: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] 1 | void *p = malloc(n); | ^~~~~~ /tmp/tmprs8jvizu.c:1:1: note: include ‘’ or provide a declaration of ‘malloc’ +++ |+#include 1 | void *p = mall - SCP-000268: secure_code [C] /tmp/tmpseq4rvde.c:1:11: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] 1 | void *p = malloc(n); | ^~~~~~ /tmp/tmpseq4rvde.c:1:1: note: include ‘’ or provide a declaration of ‘malloc’ +++ |+#include 1 | void *p = mall - SCP-000380: vulnerable_code [Rust] error: expected item, found keyword `let` --> /tmp/tmpz7qmhg47.rs:1:1 | 1 | let client = reqwest::Client::builder().danger_accept_invalid_certs(true).build()?; // Vulnerable\ | ^^^ | | | `let` cannot be used for global variables | help: consider using `static` or `const` instead of `let` - SCP-000380: secure_code [Rust] error: expected item, found keyword `let` --> /tmp/tmp4shg5ozr.rs:1:1 | 1 | let client = reqwest::Client::builder().build()?; // Secure: verifies certs\ | ^^^ | | | `let` cannot be used for global variables | help: consider using `static` or `const` instead of `let` | = note: for a f - SCP-000232: vulnerable_code [Java] /tmp/tmpa3c00ocp.java:1: error: cannot find symbol ObjectInputStream ois = new ObjectInputStream(req.getInputStream()); ^ symbol: variable req location: class tmpa3c00ocp /tmp/tmpa3c00ocp.java:1: error: compact source file does not have main method - SCP-000232: secure_code [Java] /tmp/tmp8zn07ap2.java:1: error: cannot find symbol MyDto o = objectMapper.readValue(req.getInputStream(), MyDto.class); // Secure: JSON DTO ^ symbol: class MyDto location: class tmp8zn07ap2 /tmp/tmp8zn07ap2.java:1: error: cannot find symbol MyDto o = objectMapper.readValue(req.getInputStream( - SCP-000070: vulnerable_code [C++] /tmp/tmp5qsuw9wm.cpp:2:6: error: ‘string’ in namespace ‘std’ does not name a type 2 | std::string token() { | ^~~~~~ /tmp/tmp5qsuw9wm.cpp:2:1: note: ‘std::string’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ 1 | #include +++ | - SCP-000260: vulnerable_code [C] /tmp/tmpu8w5w7ti.c: In function ‘run’: /tmp/tmpu8w5w7ti.c:2:13: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] 2 | char *p = malloc(16); | ^~~~~~ /tmp/tmpu8w5w7ti.c:1:1: note: include ‘’ or provide a declaration of ‘malloc’ +++ - SCP-000260: secure_code [C] /tmp/tmp8bwrwza9.c: In function ‘run’: /tmp/tmp8bwrwza9.c:2:13: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] 2 | char *p = malloc(16); | ^~~~~~ /tmp/tmp8bwrwza9.c:1:1: note: include ‘’ or provide a declaration of ‘malloc’ +++ - SCP-000134: secure_code [C++] /tmp/tmpz5qn_5or.cpp: In function ‘void report(const char*)’: /tmp/tmpz5qn_5or.cpp:3:7: error: ‘strpbrk’ was not declared in this scope 3 | if (strpbrk(t, ";&|$\"'") != nullptr) return; // Secure: validate | ^~~~~~~ /tmp/tmpz5qn_5or.cpp:4:31: error: ‘snprintf’ was not declared in - SCP-000466: vulnerable_code [Java] /tmp/tmp7sbxig3j.java:1: error: class, interface, annotation type, enum, record, method or field expected http.formLogin(); ^ 1 error - SCP-000466: secure_code [Java] /tmp/tmpqps9xoh2.java:1: error: class, interface, annotation type, enum, record, method or field expected http.sessionManagement() ^ 1 error - SCP-000256: vulnerable_code [C] /tmp/tmpqx2xe1ix.c: In function ‘copy’: /tmp/tmpqx2xe1ix.c:3:3: error: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration] 3 | strcpy(buf, in); // Vulnerable: no bounds | ^~~~~~ /tmp/tmpqx2xe1ix.c:1:1: note: include ‘’ or provide a declaration of ‘str - SCP-000256: secure_code [C] /tmp/tmporajb5km.c: In function ‘copy’: /tmp/tmporajb5km.c:3:3: error: implicit declaration of function ‘strncpy’ [-Wimplicit-function-declaration] 3 | strncpy(buf, in, sizeof(buf) - 1); // Secure: bounded | ^~~~~~~ /tmp/tmporajb5km.c:1:1: note: include ‘’ or provide a decla - SCP-000382: vulnerable_code [Rust] error: expected item, found `.` --> /tmp/tmp38fxe6g2.rs:1:1 | 1 | .allowed_origin(Origin::star()) // Vulnerable + credentials\ | ^ expected item | = note: for a full list of items that can appear in modules, see error: aborting due to 1 pre - SCP-000382: secure_code [Rust] error: expected item, found `.` --> /tmp/tmp6421cea4.rs:1:1 | 1 | .allowed_origin(Origin::exact("https://app.example.com".parse().unwrap())) // Secure\ | ^ expected item | = note: for a full list of items that can appear in modules, see err - SCP-000069: secure_code [C++] /tmp/tmpvdsruzal.cpp: In function ‘std::string read(const std::string&)’: /tmp/tmpvdsruzal.cpp:7:22: error: variable ‘std::ifstream f’ has initializer but incomplete type 7 | std::ifstream f(p); | ^ /tmp/tmpvdsruzal.cpp:2:1: note: ‘std::ifstream’ is defined in head - SCP-000366: vulnerable_code [Rust] error: unknown start of token: \ --> /tmp/tmpv51l4avs.rs:1:65 | 1 | let q = format!("SELECT * FROM users WHERE name = '{}''", name);\nsqlx::query(&q).fetch_all(&pool).await // Vulnerable\ | ^ error: expected item, found keyword ` - SCP-000366: secure_code [Rust] error: expected one of `!` or `::`, found `(` --> /tmp/tmpj3x1_r1n.rs:1:12 | 1 | sqlx::query("SELECT * FROM users WHERE name = $1").bind(&name).fetch_all(&pool).await // Secure: bound\ | ^ expected one of `!` or `::` error: aborting due to 1 previous error - SCP-000374: vulnerable_code [Rust] error: expected item, found keyword `let` --> /tmp/tmpaskudqop.rs:1:1 | 1 | let inv = repo.find_invoice(id).await?; // Vulnerable: no owner | ^^^ | | | `let` cannot be used for global variables | help: consider using `static` or `const` instead of `let` | = note: for a full list of i - SCP-000374: secure_code [Rust] error: expected item, found keyword `let` --> /tmp/tmpdm9y9s56.rs:1:1 | 1 | let inv = repo.find_invoice_for(id, user_id).await?; // Secure: scoped | ^^^ | | | `let` cannot be used for global variables | help: consider using `static` or `const` instead of `let` | = note: for a full li - SCP-000042: vulnerable_code [Java] /tmp/tmptko69xsc.java:2: error: class WebConfig is public, should be declared in a file named WebConfig.java public class WebConfig implements WebMvcConfigurer { ^ /tmp/tmptko69xsc.java:2: error: cannot find symbol public class WebConfig implements WebMvcConfigurer { - SCP-000042: secure_code [Java] /tmp/tmpr3yj0x6c.java:6: error: expected public boolean preHandle(r, re, h) { ^ /tmp/tmpr3yj0x6c.java:6: error: expected public boolean preHandle(r, re, h) { ^ /tmp/tmpr3 - SCP-000248: vulnerable_code [Ruby] ruby: /tmp/tmp0aj8lrso.rb:1: syntax error, unexpected '<' (SyntaxError)
<%= raw(@comment) %><%= @comment %>
’; this is probably fixable by adding ‘#incl - SCP-000273: secure_code [C++] /tmp/tmp4apx4d_g.cpp: In function ‘void log(const char*)’: /tmp/tmp4apx4d_g.cpp:2:3: error: ‘printf’ was not declared in this scope 2 | printf("%s", m); // Secure | ^~~~~~ /tmp/tmp4apx4d_g.cpp:1:1: note: ‘printf’ is defined in header ‘’; this is probably fixable by adding ‘#in - SCP-000237: vulnerable_code [Java] /tmp/tmp8quupiyl.java:1: error: class, interface, annotation type, enum, record, method or field expected
^ 1 error - SCP-000237: secure_code [Java] /tmp/tmp5iw6kjaj.java:1: error: class, interface, annotation type, enum, record, method or field expected
^ 1 error - SCP-000450: secure_code [C++] /tmp/tmpqre39k_2.cpp:1:1: error: ‘QSqlQuery’ does not name a type 1 | QSqlQuery q; | ^~~~~~~~~ /tmp/tmpqre39k_2.cpp:2:1: error: ‘q’ does not name a type 2 | q.prepare("SELECT * FROM u WHERE name = ?"); | ^ /tmp/tmpqre39k_2.cpp:3:1: error: ‘q’ does not name a type 3 | q.addBin - SCP-000378: vulnerable_code [Rust] error: expected item, found keyword `let` --> /tmp/tmp9i3gnxdn.rs:1:1 | 1 | let v: serde_json::Value = serde_json::from_slice(&body)?; // Vulnerable: loose typing\ | ^^^ | | | `let` cannot be used for global variables | help: consider using `static` or `const` instead of `let` | = no - SCP-000378: secure_code [Rust] error: expected item, found keyword `let` --> /tmp/tmp167smlw8.rs:1:1 | 1 | let v: StrictDto = serde_json::from_slice(&body)?; // Secure: typed DTO\ | ^^^ | | | `let` cannot be used for global variables | help: consider using `static` or `const` instead of `let` | = note: for a full - SCP-000381: vulnerable_code [Rust] error: expected item, found keyword `let` --> /tmp/tmps8dp4bsn.rs:1:1 | 1 | let filter = format!("(uid={})", user); // Vulnerable: inject\ | ^^^ | | | `let` cannot be used for global variables | help: consider using `static` or `const` instead of `let` | = note: for a full list of it - SCP-000381: secure_code [Rust] error: unknown start of token: \ --> /tmp/tmp4mihphpi.rs:1:53 | 1 | let filter = format!("(uid={})", user.replace("\", "\\").replace("*", "\*")); // Secure: escape\ | ^^ | = note: character appears once more error: unknown start of token - SCP-000369: vulnerable_code [Rust] error: expected item, found `.` --> /tmp/tmpkh_c2407.rs:1:1 | 1 | .route("/admin/user/{id}", web::delete().to(delete_user)) // Vulnerable: no guard\ | ^ expected item | = note: for a full list of items that can appear in modules, see error: - SCP-000369: secure_code [Rust] error: expected item, found `.` --> /tmp/tmppal7z9kk.rs:1:1 | 1 | .route("/admin/user/{id}", web::delete().guard(admin_guard).to(delete_user)) // Secure\ | ^ expected item | = note: for a full list of items that can appear in modules, see e - SCP-000278: secure_code [C++] /tmp/tmpipq09i3b.cpp:1:6: error: ‘string’ in namespace ‘std’ does not name a type 1 | std::string get_key() { | ^~~~~~ /tmp/tmpipq09i3b.cpp:1:1: note: ‘std::string’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ +++ |+#include 1 - SCP-000275: vulnerable_code [C++] /tmp/tmpq0uxeo4h.cpp:1:12: error: ‘size_t’ was not declared in this scope 1 | void* make(size_t n, size_t s) { | ^~~~~~ /tmp/tmpq0uxeo4h.cpp:1:1: note: ‘size_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ +++ |+#include - SCP-000275: secure_code [C++] /tmp/tmp3sc7f5or.cpp:1:12: error: ‘size_t’ was not declared in this scope 1 | void* make(size_t n, size_t s) { | ^~~~~~ /tmp/tmp3sc7f5or.cpp:1:1: note: ‘size_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ +++ |+#include - SCP-000323: vulnerable_code [Go] /tmp/tmpu85nc66m.go:1:1: expected 'package', found file - SCP-000323: secure_code [Go] /tmp/tmp9ul8tcy5.go:1:1: expected 'package', found 'if' - SCP-000130: vulnerable_code [Java] /tmp/tmpse3h20fp.java:1: error: statements not expected outside of methods and initializers while ((e = zis.getNextEntry()) != null) { ^ 1 error - SCP-000130: secure_code [Java] /tmp/tmplm1dye0p.java:1: error: statements not expected outside of methods and initializers while ((e = zis.getNextEntry()) != null) { ^ 1 error - SCP-000325: vulnerable_code [Go] /tmp/tmpxtbc4gkp.go:1:1: expected 'package', found r - SCP-000325: secure_code [Go] /tmp/tmpr9ju2spy.go:1:1: expected 'package', found r - SCP-000439: vulnerable_code [Java] /tmp/tmpcji2f4ny.java:1: error: cannot find symbol String q = "SELECT * FROM ledger WHERE acct='" + acct + "'"; ^ symbol: variable acct location: class tmpcji2f4ny /tmp/tmpcji2f4ny.java:1: error: compact source file does not have main method in - SCP-000439: secure_code [Java] /tmp/tmprz1vdgxw.java:2: error: class, interface, annotation type, enum, record, method or field expected ps.setString(1, acct); // bound ^ 1 error - SCP-000379: vulnerable_code [Rust] error: expected item, found keyword `let` --> /tmp/tmp9bqukj0v.rs:1:1 | 1 | let mut counter = counter_clone; // Vulnerable: unsynchronized mutation\ncounter += 1;\ | ^^^ `let` cannot be used for global variables | = help: consider using `static` and a `Mutex` instead of `let mut` = note: - SCP-000379: secure_code [Rust] error: expected item, found keyword `let` --> /tmp/tmpmtqsof_1.rs:1:1 | 1 | let mut c = counter.lock().unwrap(); // Secure: Mutex\n*c += 1;\ | ^^^ `let` cannot be used for global variables | = help: consider using `static` and a `Mutex` instead of `let mut` = note: for a full list of ite - SCP-000011: vulnerable_code [Java] /tmp/tmpi5x6eays.java:1: error: cannot find symbol DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); ^ symbol: class DocumentBuilderFactory location: class tmpi5x6eays /tmp/tmpi5x6eays.java:2: error: cannot find symbol DocumentBuilder db = dbf.newDocumentBuilder(); // Vulnera - SCP-000011: secure_code [Java] /tmp/tmpgrjb4_3i.java:2: error: class, interface, annotation type, enum, record, method or field expected dbf.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true); ^ /tmp/tmpgrjb4_3i.java:3: error: class, interface, annotation type, enum, record, method or field expected dbf.setF - SCP-000189: vulnerable_code [Go] /tmp/tmpx9fukm_v.go:1:1: expected 'package', found c - SCP-000189: secure_code [Go] /tmp/tmpvo28ac_2.go:1:1: expected 'package', found c - SCP-000239: vulnerable_code [Java] /tmp/tmp234hdej_.java:1: error: cannot find symbol String cls = req.getParameter("cls"); ^ symbol: variable req location: class tmp234hdej_ /tmp/tmp234hdej_.java:1: error: compact source file does not have main method in the form of void main() or void main(String[] args) String c - SCP-000239: secure_code [Java] /tmp/tmpow_g9ob4.java:3: error: statements not expected outside of methods and initializers if (!ALLOWED.contains(cls)) throw new IllegalArgumentException("bad cls"); // Secure ^ 1 error - SCP-000288: vulnerable_code [C++] /tmp/tmph01hpgf_.cpp:1:6: error: ‘string’ in namespace ‘std’ does not name a type 1 | std::string f = "(uid=" + user + ")"; // Vulnerable: inject | ^~~~~~ /tmp/tmph01hpgf_.cpp:1:1: note: ‘std::string’ is defined in header ‘’; this is probably fixable by adding ‘#include ’; this is probably fixable by adding ‘#incl - SCP-000279: vulnerable_code [C++] /tmp/tmpzvlnsrwq.cpp:1:6: error: ‘string’ in namespace ‘std’ does not name a type 1 | std::string tok() { | ^~~~~~ /tmp/tmpzvlnsrwq.cpp:1:1: note: ‘std::string’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ +++ |+#include 1 | st - SCP-000324: vulnerable_code [Go] /tmp/tmpetqhopc5.go:1:1: expected 'package', found filter - SCP-000324: secure_code [Go] /tmp/tmp_uf0jk3a.go:1:1: expected 'package', found filter - SCP-000257: vulnerable_code [C] /tmp/tmp829yeuym.c: In function ‘log_msg’: /tmp/tmp829yeuym.c:2:3: error: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 2 | printf(m); // Vulnerable: format string | ^~~~~~ /tmp/tmp829yeuym.c:1:1: note: include ‘’ or provide a declaration of ‘pri - SCP-000257: secure_code [C] /tmp/tmpvajv3q43.c: In function ‘log_msg’: /tmp/tmpvajv3q43.c:2:3: error: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 2 | printf("%s", m); // Secure: positional | ^~~~~~ /tmp/tmpvajv3q43.c:1:1: note: include ‘’ or provide a declaration of ‘prin