Skip to content

Instantly share code, notes, and snippets.

View unsynchronized's full-sized avatar

brandon creighton, aka cstone unsynchronized

View GitHub Profile
<?php
/**
* @file
* Contains code for sanitizing user input from the request.
*/
/**
* Sanitizes user input from the request.
*/
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE123_Write_What_Where_Condition__connect_socket_83.h
Label Definition File: CWE123_Write_What_Where_Condition.label.xml
Template File: sources-sink-83.tmpl.h
*/
/*
* @description
* CWE: 123 Write-What-Where Condition
* BadSource: connect_socket Overwrite linked list pointers using a connect socket (client side)
* GoodSource: Don't overwrite linked list pointers
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE123_Write_What_Where_Condition__connect_socket_83_bad.cpp
Label Definition File: CWE123_Write_What_Where_Condition.label.xml
Template File: sources-sink-83_bad.tmpl.cpp
*/
/*
* @description
* CWE: 123 Write-What-Where Condition
* BadSource: connect_socket Overwrite linked list pointers using a connect socket (client side)
* GoodSource: Don't overwrite linked list pointers
DECLARE SUB disp (d)
DEFINT A-Z
DECLARE SUB Filter (InString$)
ON ERROR GOTO auntieem
COLOR 7, 0 ' Set screen color.
CLS
mmode = 0 'mmode=client mode: 0-terminal 1-dosirc
mor = 0
Quit$ = CHR$(0) + CHR$(16) ' Value returned by INKEY$
tmkey$ = CHR$(0) + CHR$(20)

Keybase proof

I hereby claim:

  • I am unsynchronized on github.
  • I am cstone (https://keybase.io/cstone) on keybase.
  • I have a public key whose fingerprint is 10A8 DE2F 73BC 9AC7 8233 4EFC B56D 6125 D545 8134

To claim this, I am signing this object: