Proceedings of the 2014 International Workshop on Privacy &Amp; Security in Programming - PSP '14 2014
DOI: 10.1145/2687148.2687152
|View full text |Cite
|
Sign up to set email alerts
|

Statically typed string sanitation inside a python

Abstract: Web applications must ultimately command systems like web browsers and database engines using strings. Strings derived from improperly sanitized user input can as a result be a vector for command injection attacks. In this paper, we introduce regular string types, which classify strings constrained statically to be in a regular language specified by a regular expression. Regular strings support standard string operations like concatenation and substitution, as well as safe coercions, so they can be used to imp… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1

Citation Types

0
2
0

Year Published

2016
2016
2024
2024

Publication Types

Select...
2
1
1

Relationship

1
3

Authors

Journals

citations
Cited by 4 publications
(2 citation statements)
references
References 12 publications
0
2
0
Order By: Relevance
“…Python's complexity also makes it difficult for fragment providers to reason about correctness (relative to, e.g., an inductive specification, e.g. as in [32]) In the future, we hope to develop a dialect of typy using a reduced subset of Python (e.g. RPython [6] or λ π [57]) or a simpler language still for which a formal definition is available.…”
Section: Discussionmentioning
confidence: 99%
See 1 more Smart Citation
“…Python's complexity also makes it difficult for fragment providers to reason about correctness (relative to, e.g., an inductive specification, e.g. as in [32]) In the future, we hope to develop a dialect of typy using a reduced subset of Python (e.g. RPython [6] or λ π [57]) or a simpler language still for which a formal definition is available.…”
Section: Discussionmentioning
confidence: 99%
“…As such, when ctx.ana is called, typy follows the same protocol just described, delegating to string_in.ana_Str to analyze the string literals and to py.ana_Dict to analyze the dictionary literal. The string_in fragment implements a regex-based constrained string system, which we described, along with its implementation in typy, in a workshop paper [32]. 3 The py fragment allows dynamic Python values to appear inside typy programs, consistent with the view of Python as a statically unityped language [34,63].…”
Section: Literal Formsmentioning
confidence: 99%